Howto: Installing .local deb packages with apt-get
scott at guppylog.com
Wed May 16 20:25:57 UTC 2007
On Wed, 2007-05-16 at 23:04 +0300, Dotan Cohen wrote:
> > sudo apt-get install <package_name>
> Will that install a local .deb file?
Create a directory that you will use as a local repository, and also
add that directory to your /etc/apt/sources.list,
then yes, it will.
Place the .deb's you want to install in the local directory where you
wish to store them, add it to your /etc/apt/sources.list, and then run
apt-get update, apt-get install <pkg-name>.
Here is an example of what the entry in /etc/apt/sources.list should
look like. Append it to the end of your /etc/apt/sources.list, and
modify it for your own purposes.
[NOTE: This example assumes you have created the
directory /usr/local/apt-packages, and that you are in fact storing your
locally created deb's there.]
# Local .debs
deb file:///usr/local/apt-packages/ ./
More information about the ubuntu-users