Tuesday, October 25, 2016

How to install with dpkg and the dependency packages


On lubuntu/ubuntu world, when you have a debian package (.deb) and you want to install on your computer, normally you would use dpkg tool to install it, the problem is sometimes the debian package have dependency on other software package.

So how to solve this problem? how can i install debian package using dpkg tool but also install the dependency packages as well? i found the solution is pretty simple.

Let's say i have debian package called my-program.deb, to install simply run:
sudo dpkg -i my-program.deb

If the debian package above is require other packages (have dependency), it will show error, but no worry, we can install all of the dependency packages using one command, like this:
sudo apt-get -f install

The command above will take care of everything, and you don't need to run sudo dpkg -i again, the software should already installed on your system. 

No comments:

Post a Comment