Hi there,<div><br></div><div>Some months ago I wrote a litle article about this difference: aptitude vs apt-get.</div><div><br></div><div>Unfortunately it's in Portuguese, but if you want to read its you can use google translate.</div>
<div><br></div><div>A short summary:</div><div><br></div><div>What many people do not know is that using the command "apt-get install package_name" some packages will be installed as dependencies that won't be automatically remove later. I mean, you'll have and accumulation of garbage in your system. How?</div>
<div><br></div><div>Let's suppose I want to install an instant messenger application such as aMSN. This tool has dependencies required fot its operation like TCL and TK.</div><div><br></div><div>The following command will install the amsn with its dependencies:</div>
<div><br></div><div># apt-get install amsn</div><div><br></div><div>Great! Now I have my messenger properly installed, without any difficult and running smoothly. BUt now I decided to remove this tool.</div><div><br></div>
<div># apt-get remove amsn</div><div><br></div><div>Perfect! My amsn is uninstalled without difficulty.</div><div><br></div><div>But, what about those two packages? TCL and TK?</div><div><br></div><div>They are still installed, making a certain accumulation of garbage in your system. The same will happens with all the packages that are installed in your system and eventually removed with apt-get.</div>
<div><br></div><div>What about aptitude?</div><div><br></div><div>In installation, aptitude would be very similar, for example:</div><div><br></div><div># aptitude install amsn</div><div><br></div><div>Like apt-get, aptitude will automatically install the dependencies of aMSN, like TCL and TK.</div>
<div><br></div><div>Yeah, I wanna remove it now.</div><div><br></div><div># aptitude remove amsn</div><div><br></div><div>Surprise! TCL and TK were removed too.</div><div><br></div><div>It's not magic guys! :D</div><div>
<br></div><div>Aptitude will check if TCL and TK are necessary to other packages in the system. If not, it will remove then.</div><div><br></div><div>;]</div><div><br></div><div>My 2 cents...</div><div><br clear="all">---<br>
-  °v°   Marcelo Cavalcante Rocha / Kalib<br>- /(_)\  ITIL V3 Foundation Certified | Certified Scrum Master<br>-  ^ ^   Usuário Linux #407564 / Usuário Asterisk #1148<br>- GNU-Linux - Livre, Poderoso e Seguro<br>- TUX-CE Member - <a href="http://www.tux-ce.org">www.tux-ce.org</a><br>
- Archlinux-br Developer Team - <a href="http://archlinux-br.org">http://archlinux-br.org</a><br>- KDE Brasil Member<br>- TLUG Member - Toronto Linux User Group<br>- <a href="http://www.marcelocavalcante.net">http://www.marcelocavalcante.net</a><br>

<br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 4:46 AM, John Myshrall <span dir="ltr"><<a href="mailto:jmyshrall-6duGhz7i8susTnJN9+BGXg@public.gmane.org">jmyshrall-6duGhz7i8susTnJN9+BGXg@public.gmane.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Rajinder Yadav wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Christopher Browne wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Dec 17, 2009 at 12:20 AM, Rajinder Yadav <<a href="http://devguy.ca" target="_blank">devguy.ca</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is the difference between using apt-get and aptitude to install<br>
packages?<br>
<br>
I'm using aptitude because if I recall correctly it manages the package<br>
dependencies better, where as apt-get will not. I recall having to use<br>
synaptic to fix a problem once and that when I stopped using apt-get.<br>
</blockquote>
<br>
The essential difference is that aptitude represents a "captive,<br>
GUI-ish" interface (albeit in a terminal window) whereas apt-get is<br>
purely scriptable/commandable.<br>
</blockquote>
<br>
GUI? are we using the same aptitude =) I am using the command line on kubuntu:<br>
<br>
i.e. 'sudo aptitude install <x>'<br>
<br>
the only gui package installed I see are kpackagekit and synaptic<br>
</blockquote></div>
type aptitude and you get a gui.<br>
<br>
<a href="http://wiki.debian.org/Aptitude" target="_blank">http://wiki.debian.org/Aptitude</a><br>
<br>
<a href="http://wiki.debian.org/Apt" target="_blank">http://wiki.debian.org/Apt</a><br>
<br>
<a href="http://wiki.debian.org/apt-get" target="_blank">http://wiki.debian.org/apt-get</a><br><font color="#888888">
<br>
John</font><div><div></div><div class="h5"><br>
--<br>
The Toronto Linux Users Group.      Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/Mailing_lists</a><br>
</div></div></blockquote></div><br></div>