Installing .deb packages with apt-get

Dotan Cohen dotancohen at
Wed May 16 22:13:01 UTC 2007

On 17/05/07, Peter Garrett <peter.garrett at> wrote:
> On Wed, 16 May 2007 16:35:13 +0100
> Gabriel Dragffy <gabe at> 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

Thanks, Peter, that's a great tip. How on earth did you think about that?!?

Dotan Cohen

More information about the ubuntu-users mailing list