Find the answer to your Linux question:
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 ...
  1. #1
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127

    Question 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.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    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.

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Location
    Houston, Texas.
    Posts
    57
    Quote Originally Posted by reed9 View Post
    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.

    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'.

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by littlebigman View Post
    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?
    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.

  5. #5
    Linux 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.

  6. #6
    Just Joined!
    Join Date
    Jul 2006
    Location
    localhost
    Posts
    22
    Quote Originally Posted by littlebigman View Post
    "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".
    If you want to list the contents of an uninstalled package without using apt-file you could use this method:

    Code:
    dpkg --contents /var/cache/apt/archive/<package>*.deb
    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.

    Odd considering aptitude was intended to eventually replace the apt-* tools, at least as far as I know.

  7. #7
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127
    Thanks for the tip on dpkg.

  8. #8
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Quote Originally Posted by loopback View Post
    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!
    Yes, that happened to me when I did the Etch/Lenny upgrade. I was furious but got precious little sympathy in Debian Forums.

    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'.
    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 feedback
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  9. #9
    Just Joined!
    Join Date
    Jan 2010
    Posts
    1
    Quote Originally Posted by littlebigman View Post
    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.
    $ 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...