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:

pandith13 said...

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

Vasudeva said...

Thanks for sharing!

SRIKRISHANA ASTROLOGY.Vashikaran Astrologer in Bangalore

DurgaAnugarha said...

Nice post.Keep sharing. Thanks for sharing.

DURGAANUGARHA ASTROLOGY.black magic Astrologer In davangere

abhiramindia said...

it was great information and very useful

ABHIRAM ASTROLOGY CENTER.Best indian Astrologer In jaspe

Famous astro said...

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