Saturday, February 19, 2011

Aptitude string for downgradable packages

Hello,
I'm lately doing some tests with Debian experimental packages thus I often upgrade some packages to experimental and downgrade them back to unstable.
WARNING: Downgrading in Debian is not supported etc.

aptitude search "?narrow(?installed,?archive(experimental))" -F %p|\
sed
's,\([^ ]*\),\1/unstable,'|xargs echo


This will give you a list of experimental packages installed on your system each concatenated with "/unstable". The output can go straight to "aptitude install". I don't directly use "xargs aptitude install" because it's not interactive.

5 comments:

  1. Great post, thanks
    SRI ANNAPOORNESHAWARI ASTROLOGY CENTER.Best Astrologer In Michigan

    ReplyDelete
  2. Thanks for sharing!

    SRIKRISHANA ASTROLOGY.Vashikaran Astrologer in Bangalore

    ReplyDelete
  3. Nice post.Keep sharing. Thanks for sharing.

    DURGAANUGARHA ASTROLOGY.black magic Astrologer In davangere

    ReplyDelete
  4. it was great information and very useful

    ABHIRAM ASTROLOGY CENTER.Best indian Astrologer In jaspe

    ReplyDelete
  5. Nice article..
    Click here to get a best astrological services contact. Vashikaran Astrologer in Bidar

    ReplyDelete