Jump to content

list all installed package and automate install


Recommended Posts

I've been experiencing of troubles in Mandriva and it's very tired to reinstall everything manually.

 

I wonder if there is any way to list all installed packages and automate it with any program.

RpmDrake doesn't support this.

Link to comment
Share on other sites

I use these two bash scripts

#!/bin/bash
rpm -qa --qf '%{NAME}\n' | sort > mypkgs.txt

to list all installed packages before a reinstall and

#!/bin/sh
urpmi.update -a
while read line; do
 urpmi --auto $line
done <  mypkgs.txt

after a minimal install and setting up sources.

 

I've used it several times to go back to 2008.1 after trying 2009.0 and 2009.1.

 

Ken

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...