howtos:creating_a_local_repository
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:creating_a_local_repository [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Intro ===== | ||
+ | When you build a list for scripting install' | ||
+ | |||
+ | This howto will overcome this with some simple tricks. | ||
+ | |||
+ | |||
+ | |||
+ | ===== Install needed software ===== | ||
+ | |||
+ | We need dpkg-dev to make this work so install it like this: | ||
+ | |||
+ | < | ||
+ | sudo apt-get install dpkg-dev | ||
+ | </ | ||
+ | |||
+ | ===== MyDebs directory ===== | ||
+ | |||
+ | Create a directory where you store the downloaded deb files: | ||
+ | |||
+ | < | ||
+ | mkdir ~/MyDebs | ||
+ | </ | ||
+ | |||
+ | ===== The update-script ===== | ||
+ | Now make a script that will update the package list for apt-get: | ||
+ | |||
+ | < | ||
+ | cd ~/MyDebs | ||
+ | dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz | ||
+ | </ | ||
+ | |||
+ | Save it as update-mydebs in your local bin directory and make executable: | ||
+ | |||
+ | < | ||
+ | gedit ~/ | ||
+ | chmod +x ~/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Sources.list ===== | ||
+ | To bind it all together put the following into / | ||
+ | |||
+ | < | ||
+ | deb file:/ | ||
+ | </ | ||
+ | |||
+ | ===== Using the script ===== | ||
+ | After downloading a deb file run: | ||
+ | |||
+ | < | ||
+ | sudo update-mydebs | ||
+ | sudo apt-get update | ||
+ | </ | ||
+ | |||
+ | Now apt-get/ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Source ===== | ||
+ | https:// | ||
howtos/creating_a_local_repository.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1