Xcross87 Posted May 12, 2009 Report 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. Quote Link to comment Share on other sites More sharing options...
neddie Posted May 12, 2009 Report 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? Quote Link to comment Share on other sites More sharing options...
K Bergen Posted May 12, 2009 Report 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 Quote Link to comment Share on other sites More sharing options...
Xcross87 Posted May 12, 2009 Author Report Share Posted May 12, 2009 Tks guys, that's so wonderful ^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.