Installing .deb packages with apt-get

Peter Garrett peter.garrett at optusnet.com.au
Wed May 16 21:56:16 UTC 2007


On Wed, 16 May 2007 16:35:13 +0100
Gabriel Dragffy <gabe at dragffy.com> wrote:

> I don't think you can use apt-get itself. But you can certainly use
> dkpg. The normal way of using it is "dpkg -i packagename" naturally you
> will need root privelages, so switch user or sudo the command.

You can probably do this:

sudo cp  *.deb  /var/cache/apt/archives/
sudo apt-get update && sudo apt-get install  foo bar   

 # add package names to taste

Dumping your debs in the archive dir may not be elegant, but I've done it
in the past, and it works well enough .

Apt knows about the .debs in the archive ( which is why if you uninstall
something then change your mind before the cache gets emptied, no
downloading is required)

gdebi makes all this rather pointless though - just double-click a deb to
install, and if dependencies are needed they will be retrieved, assuming
they are available and you have an Internet connection to get them if
they are not already in the archive ...

Peter




More information about the ubuntu-users mailing list