Re: FC6 equivalent to Windows System Restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 8 Dec 2006, Filip Tsachev wrote:

Hello,

On 07/12/06, Matthew Saltzman <mjs@xxxxxxxxxxxxxxx> wrote:

On Thu, 7 Dec 2006, David Timms wrote:

> - saving the complete packages installed list would be good if you end
up
> needing to reinstall from scratch
> { rpm -qa>packages.2006-12-whenever.txt }.

In a standard install, this information is saved by a cron job in
/var/log/rpmpkgs.  This file is updated nightly and rotated weekly, with
four generations of backup.


I was thinking if there's a quick way to use this file automatically when
doing re/install?

If all your RPM files follow the naming convention <rpm-name>-<version>.<arch>,rpm, then just put all the RPM files in a directory and write a script to read the rpmpkgs file a line at a time and
"rpm -ivh filename".  Run the script in that directory.

There are all sorts of ways to get the args in the file passed to the rpm command.

If not all RPM files follow the convention, you may have some fixing up to do by hand.


Cheers,
Filip


--
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux