[SOLVED] aptitude install IS NOT THE SAME AS apt-get install
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
aptitude install IS NOT THE SAME AS apt-get install
i'm using debian wheezy and i've read a lot online about apt-get and aptitude.
after reading those things i decided that i didn't need the extra functionality aptitude provides and that i would stick to apt-get.
however, after doing a small test, i'm not really sure about my decision
for the test i first tried "aptitude install wicd" and cancelled
then i did the same but with apt-get "apt-get install wicd"
i thought both instructions would do the exact same but that isn't true:
apt-get wanted to install wicd and use 52.7MB
aptitude wanted to install wicd and use 52.3MB (which is less)
so i looked further and saw that apt-get would only install wicd but that aptitude would install wicd AND remove libreadline5
not that my HDD isn't big enough but why does aptitude want to remove libreadline5 when installing wicd and apt-get doesn't?
and how is "aptitude install" different from "apt-get install"??
May it be possible that libreadline5 is remnant from a former installation that is no longer needed? IIRC, aptitude automatically removes not longer needed dependencies, while you need the autoremove command to do the same with apt-get.
Since autoremove can be dangerous (do a web search for Debian meta-package problem) I would consider using apt-get to be more save.
My experience with aptitude has been great. I have had no issues at all with it. It asks if it wants me to allow it to remove a package. I just make sure to read all that it is doing. Upgrades, installs, removes.
aptitude keep <individual package, temporary. Use hold for something permenant>
aptitude keep-all
aptitude hold <package>
aptitude unhold <package>
BTW: apt-get is more safe as mentioned already. Good to use until a person gets use to things better.
Pick one and stick with it, personally I have always used apt-get.
I seem to be the oddball here :-) . I love aptitude. While autoremove is very much automatic as you said it still shows you what it is going to do before it does it.
Quote:
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded
I like this because many times it is telling me what packages I don't really need anymore. It is not always correct which makes the above commands I mentioned in my previous reply more important.
However, as mentioned, yes pick one only and stay with it. if apt-get works for you or anyone else, then that is all that matters. there is no right or wrong way of doing it. The great thing about linux is that there are so many choices and we have the freedom to choose what we want.
I wonder though. I can't be the only one who uses aptitude, am I? lol
I use aptitude all the time, but I never do aptitude install foo, I always open it as a curses program. That way, I can see the effects of every operation I do, and undo them before actually downloading/installing anything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.