Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-11-2006, 03:38 AM
|
#1
|
|
Member
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 202
Rep:
|
What is the difference between dpkg and aptitude/apt-get?
When installing a software via 'dpkg -i packageA.deb', will the dependencies required by packageA be downloaded and installed automatically (aka aptitude/apt-get ) or are all the required dependencies already built into packageA.deb package?
Thanks !
|
|
|
|
03-11-2006, 04:29 AM
|
#2
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
dpkg will not install the dependencies. You have to do it manually... apt-get will do both for you (download and install dependencies).
Last edited by vharishankar; 03-11-2006 at 04:31 AM.
|
|
|
|
03-11-2006, 06:54 AM
|
#3
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,697
|
dpkg handles the basic low-level install/uninstall and configuration routines. Apt sits on top of it to add downloading, dependency handling, and other usability features. Aptitude, Dselect, Synaptic and such are all gui or ncurses frontends for Apt.
|
|
|
|
03-11-2006, 07:52 AM
|
#4
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
Now the difference between Aptitude and Dselect might be more relevant. At least I would be interested in knowing...
|
|
|
|
03-11-2006, 09:13 AM
|
#5
|
|
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250
Rep:
|
Quote:
|
Now the difference between Aptitude and Dselect...
|
The new book, The Debian System, goes into great and enlightening detail about that and other subjects ... I'm about half way thru it cover to cover. Will write a review when I'm at least 3/4 through. Great book, tho, for serious Debian users.
|
|
|
|
03-11-2006, 01:54 PM
|
#6
|
|
Member
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601
Rep:
|
David the H. wrote:
> dpkg handles the basic low-level install/uninstall and configuration routines. Apt sits on top of it
I'm not so sure about that... It looks as if both apt and dpkg are considered "low-level" commands, somewhat separated from each other (except that they both use the same underlying deb packaging db/system). dselect {shudder } is the front-end for dpkg. aptitude and syntaptic are front-ends for the apt tools.
You just don't think of apt-get as a low-level command because most folks use it all the time as the usual way to manage packages.
|
|
|
|
03-11-2006, 02:10 PM
|
#7
|
|
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250
Rep:
|
I think David the H is a little closer to the truth there. dpkg does the actual installations, apt sits on top of that, and handles dependencies. At the very top is aptitude, well worth studying. aptitude is to apt as deselect to dpkg, but that's a vast understatement. It is a substitute for, and an improvement upon apt, and will eventually probably be the foundation for apt's replacement.
As johnMG said, dselect=shudder ... aptitude=smile ... /usr/share/doc/aptitude/README.gz
Last edited by rickh; 03-11-2006 at 02:20 PM.
|
|
|
|
03-11-2006, 05:25 PM
|
#8
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Rep:
|
I always use "aptitude install xxx". Why? Well aptitude remembers the dependencies installed with the package xxx and when you remove the package eg "aptitude remove xxx" or "aptitude purge xxx" then all the packages that were installed with the xxx (dependencies) will be removed too. Apt-get does not remember those packages, meaning you get a lot of useless packages on the system. Dpkg part you already know.
|
|
|
|
03-13-2006, 09:30 AM
|
#9
|
|
Member
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601
Rep:
|
divukman, if using apt-get, you can then use deborphan and debfoster to keep your system clean of un-used packages. Didn't know aptitude had that functionality built-in though.
|
|
|
|
03-13-2006, 10:56 AM
|
#10
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Rep:
|
Quote:
|
Originally Posted by johnMG
divukman, if using apt-get, you can then use deborphan and debfoster to keep your system clean of un-used packages. Didn't know aptitude had that functionality built-in though.
|
tnx,
no I've never heared of deborphan, so I just settled with aptitude 
|
|
|
|
03-13-2006, 04:12 PM
|
#11
|
|
Member
Registered: Oct 2005
Distribution: Debian Etch i386, Lenny and Sid amd64
Posts: 176
Rep:
|
Quote:
|
Originally Posted by divukman
I always use "aptitude install xxx". Why? Well aptitude remembers the dependencies installed with the package xxx and when you remove the package eg "aptitude remove xxx" or "aptitude purge xxx" then all the packages that were installed with the xxx (dependencies) will be removed too. Apt-get does not remember those packages, meaning you get a lot of useless packages on the system. Dpkg part you already know.
|
So, if one were to use Aptitude to uninstall something that was installed with apt, would that still remove dependencies?
|
|
|
|
03-13-2006, 05:10 PM
|
#12
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Rep:
|
Quote:
|
Originally Posted by RodWC
So, if one were to use Aptitude to uninstall something that was installed with apt, would that still remove dependencies?
|
No, try deborphan for that. 
|
|
|
|
03-13-2006, 08:18 PM
|
#13
|
|
Senior Member
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249
Rep:
|
Quote:
|
Originally Posted by David the H.
dpkg handles the basic low-level install/uninstall and configuration routines. Apt sits on top of it to add downloading, dependency handling, and other usability features. Aptitude, Dselect, Synaptic and such are all gui or ncurses frontends for Apt.
|
I guess I have something more to add to the ongoing confusion.
Accroding to Debian Docs at
http://www.nl.debian.org/doc/manuals...ackage.en.html
Code:
APT uses /var/lib/apt/lists/* for tracking available packages while dpkg uses /var/lib/dpkg/available. If you have installed packages using aptitude or other APT front ends and you want to use dselect to install packages then the first thing you should do is update /var/lib/dpkg/available by selecting [U]pdate from dselect's menu (or by running "dselect update").
So when I install any package from apt-get for e.g.
apt-get install xserver-xorg
I am able to do the following also:
dpkg --purge xserver-xorg
or
dpkg-reconfigure xserver-xorg
How does dpkg become aware of what packages were installed on my system with apt-get if both (APT & DPKG) uses different file for tracking packages.
Next question is:
We know that apt-get, aptitude, synaptic,gsynaptic are all tools related to APT system, but no where it is mentioned(in manuals) that dselect is a part of dpkg or APT, although when I read the man pages for dpkg and dselect, both of them said that is a front-end tool for dpkg and APT system respectively.
So where does deselect stand ??
Also is there any way through apt-get by which we can download the recommended and suggested packages also. Does aptitude downloads recommended and suggested.
Thanks
|
|
|
|
03-13-2006, 11:33 PM
|
#14
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
Yes, all this is very confusing. I suggest sticking to one method for those in doubt, since dselect and apt-get/aptitude seem to use different underlying methods...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|