dpkg vs apt and usage of grep

dpkg , apt , synaptic , aptitude —all these belong to debian flavour of linux


apart from dpkg and apt-get we have

aptitude:-  it is like a graphical user interface for managing with packages which uses apt-get libraries .It is a package manager with GUI

synaptic:-similar to aptitude. you can look at it’s features here Synaptic.

both aptitude and synaptic are meant for .deb packages but also can be used or appearing in RPM (fedora’s package database)


 dpkg vs apt-get

In simple analogy :-

dpkg only installs a package, so doing dpkg -i packageName.deb (here 'i' is install)  will only install this Deb package, and will notify you of any dependencies that need to be installed, but it will not install them, and it will not configure the packageName.deb because  dependencies are not there.

apt-get is a Package Management System that handles the installation of Deb packages on Debian-based Linux distributions. A Package Management System is a set of tools that will help you install, remove, and change packages easily. So apt-get is like a clever dpkg.


simply stages of invention:-

 stage 1:-   dpkg was invented in the initial days

stage 2:-   apt-get was then invented because they were not satisfied on dpkg because                      as mentioned above

 stage 3:-   aptitude/synaptic were invented because they felt one needs GUI



what and how to use grep ?

today as I have been exploring through the code of  KDE I was feeling troubled in finding where a particular function and variable was actually written (I mean in which .h or .cpp files) so felt there must be some tool which can efficiently find (search) keywords and show me filename where that keyword is used

I am happy that I found “GREP” utility.

using  GREP you can find your keyword in a particular file or in files with particular patterns

you can find more on this here


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s