Results 1 to 9 of 9
Hello
I read somewhere that it's not a good idea to mix the use of apt-* (eg. apt-get, apt-file, etc.) and "aptitude". I guess they're not using the same database ...
- 08-25-2010 #1Linux Newbie
- Join Date
- Nov 2007
- Posts
- 127
Mixing apt-* and aptitude NOK?
Hello
I read somewhere that it's not a good idea to mix the use of apt-* (eg. apt-get, apt-file, etc.) and "aptitude". I guess they're not using the same database to keep track of things.
Problem is, they don't offer the same features:
"apt-get safe-upgrade" doesn't exist, so have to use "aptitude safe-upgrade".
"aptitude show/list mypackage" doesn't show the files that an uninstalled package (ie. still in depot) contains, so have to use "apt-file show mypackage".
So... what's the solution? Is it really a problem to use "apt-*" and "aptitude", depending on what we need to do?
Thank you.
- 08-25-2010 #2
aptitude safe-upgrade should be the roughly equivalent of apt-get dist-upgrade.
Not sure if there is an apt-file equivalent, but there shouldn't be an issue mixing apt queries with aptitude. There's no database mixup type things if you're just querying a package in the repository.
- 08-25-2010 #3Just Joined!
- Join Date
- Aug 2005
- Location
- Houston, Texas.
- Posts
- 57
I understand that it's essential to use 'aptitude keep-all' before you do anything at all when first using 'aptitude'. Especially if one starts off using 'apt-get'. Maybe even the GUI Synaptic. Some files and libs can be deleted when switching to 'aptitude' if not. And yes, it's happened to me. The first time I did an 'aptitude update/upgrade I had a page and a half of stuff listed to be deleted. Which like a dummy I say OK to. Wrong!
I've been an 'apt-get' user from the start and begain using 'aptitude' a couple of years ago just out of curiosity. I've since gone back to 'apt-get'. If for no other reason than to make things easier - at least for me. Like an old pair of shoes, I'm used to 'apt-get'. And I think I"m going to stick to it.
I'm using Debian because things like upgrading, installing apps, deletion of apps and cleaning up are so much easier than with other distros. I guess what ever is best for you, keep it up.
Whether one is better than the other, I can't say. I feel it's six of one, half dozen of the other. You can't go wrong with either Just let me advise you to use the path of least resistance.. As for me, I'll stick to 'apt-get'.
- 08-25-2010 #4forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
It's been quite a while since I last used either of them but I do remember trying aptitude after using apt for some time and it seemed to me that apt was much better, or at least it worked better for me. I personally don't think it's a good idea to mix them, but that's just my opinion based on usage from several years back.
oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 08-26-2010 #5Linux Newbie
- Join Date
- Nov 2007
- Posts
- 127
Thanks all for the tips. I'll try "apt-get dist-upgrade" instead, and see how it goes. I'm also more familiar with apt-get instead of aptitude, so would rather use the former unless there are good reasons to use the latter.
- 08-26-2010 #6Just Joined!
- Join Date
- Jul 2006
- Location
- localhost
- Posts
- 22
If you want to list the contents of an uninstalled package without using apt-file you could use this method:
Not sure if there's a recommended way to do this, usually when a feature gets removed it's either because there's a better way or because it's very badly broken.Code:dpkg --contents /var/cache/apt/archive/<package>*.deb
Odd considering aptitude was intended to eventually replace the apt-* tools, at least as far as I know.
- 08-26-2010 #7Linux Newbie
- Join Date
- Nov 2007
- Posts
- 127
Thanks for the tip on dpkg.
- 08-26-2010 #8
Yes, that happened to me when I did the Etch/Lenny upgrade. I was furious but got precious little sympathy in Debian Forums.
The Debian team nowadays recommend aptitude over apt-get; I don't know why. I don't like it. I use apt-get for quick work when I know what I'm doing and synaptic when I'm not sure and need visual feedbackWhether one is better than the other, I can't say. I feel it's six of one, half dozen of the other. You can't go wrong with either Just let me advise you to use the path of least resistance.. As for me, I'll stick to 'apt-get'."I'm just a little old lady; don't try to dazzle me with jargon!"
- 08-27-2010 #9Just Joined!
- Join Date
- Jan 2010
- Posts
- 1
$ sudo tasksel install lamp-server
$ tasksel: aptitude failed (100)
barusan aku nemu kejadian kyk gt, trus aku masukkan comand
$ sudo apt-get update <- masih gagal
$ sudo killall -9 apt-get <- masih gagal juga...
ternyata servernya perlu diupgrade...
).....
untuk upgrade server cuman ada dua command...
$ sudo aptitude install update-manager-core
$ sudo do-release-upgrade
---------------------------------
and problem finnished bro....=))
back to
$ sudo tasksel install lamp-server
by
isa muhammad said a.k.a isarockpunk


Reply With Quote
