1

I've seen both these ways suggested for installing packages manually, but I don't know the difference:

dkpg -i <pkg>.deb

and

./configure
make
make install

So how do they differ? Is the former one only a "more automated" way of just doing the same thing as the latter one? Or they are completely different?

(P.S: Asked here because dpkg is "debian package").

Edit: After reading the answer by Rajat Pandita I see that using make involves compiling of program from source while dpkg just knows best how to organize the compiled program in different directories. There's another question on the network asking about the difference between apt-get and dpkg which is obviously different from this question.

aderchox
  • 222

2 Answers2

1

dpkg is a program on a Debian/Ubuntu or any derivative distribution for installing already packaged applications. The Difference is very simple, a .deb file is a compiled package of application binaries. It has inbuilt logic for placing the different files indifferent directories.

For example, the executable for the application goes into /usr/bin, However the point to note here is that .deb is a packaged binary file which contains compiled software. You do not get to see the source, Hence Many Companies tend to publish their proprietary software in .deb/.rpm format.One such example is Insync, another is Crossover for Linux. Both these are proprietary but distributed as a .deb or a .rpm file.

Here is the gist.

dpkg -i

Means you are installing a compiled and packaged application to run on any Linux distribution which uses .deb format for installing packages.

and

./configure make make install

Means that you have the source code for the application which you are installing. You are now compiling manually by using the compiler(configure and then followed by make.) on the system rather than the package manager. The make install command will then install the software on the system. this method works regardless of the distribution you are installing on.

Rajat Pandita
  • 214
  • 5
  • 14
0

Well, both methods don't have auto updating. They suggest adding an apt repository with the .deb which is updated by a package maintainer. Then when you do system updates, the program will be updated alongside your other .deb packages. dpkg is the Ubuntu default package manager because it's derived from Debian. The whole system is installed using it.