Xcross87 Posted May 12, 2009 Share Posted May 12, 2009 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 More sharing options...
neddie Posted May 12, 2009 Share Posted May 12, 2009 I wonder if there is any way to list all installed packages rpm -qa (It's a long list, you might want to pipe it to a file). I'm not sure what you want to automate? Link to comment Share on other sites More sharing options...
K Bergen Posted May 12, 2009 Share Posted May 12, 2009 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 More sharing options...
Xcross87 Posted May 12, 2009 Author Share Posted May 12, 2009 Tks guys, that's so wonderful ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now