Linux – How to install local .deb packages with apt-get

aptaptitudedebianlinuxpackages

Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb?

If not, how to handle the dependencies in a very very easy way?

Best Answer

usually I do dpkg -i <deb file>, it'll fail saying it needs dependencies. After that when you do an apt-get update it'll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f.

Once that's done, I use dpkg -i again.

Worked fine for me last few years.

edit: looking a bit further, apparently a tool called gdebi can do this as gdebi [deb file].

Related Question