LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

Rate this Entry

adding non-repository deb packages to apt

Posted 11-01-2011 at 05:48 AM by neonsignal

A local repository can be created for miscellaneous deb packages that are not part of a standard repository, so that they can be managed by apt-get.

Create a repository (it can be located anywhere):
Code:
mkdir /var/cache/apt/altdeb
Copy the relevant deb files to that place. Then generate a package index:
Code:
dpkg-scanpackages /var/cache/apt/altdeb /dev/null | gzip >/var/cache/apt/altdeb/Packages.gz
Add a line to /etc/apt/sources.list so that this local repository can be found:
Code:
deb file:// /var/cache/apt/altdeb/
And run apt-get update to update the indexes.

Now the packages can be installed using apt-get as with any other package.
Posted in Uncategorized
Views 189 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration