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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...