I've been wondering, is there a way to tell dpkg or apt-get that when I want to install a package also install all the dependencies it requires? I installed a package using dpkg but it complained about some dependency issues so I had to manually search one by one, is there a better way to do this?
|
|
|||||
|
|
Dependencies should be installed by default with apt-get. You might also want to read the answers for this question: Installing suggested/recommended packages?. |
|||
|
|
|
apt-get or aptitude will install all the dependencies of a package. According to apt-get man page
Even if you want to install a package from source you can install its build dependencies using apt-get. Use apt-get build-dep for that purpose. Again from apt-get man page:
For example if you want to compile gcc you will need all the build dependencies for successfully compiling gcc. So you use |
|||
|
|
|
If after using |
||||
|
|
|
If you're looking for a tool that will install a downloaded (ie. non-repository based) package including dependencies, look at gdebi (the GTK UI) or gedebi-core (the command line tool). |
|||
|
|
