Re: Yum RPM Update FC6 --> FC7

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1186231509.998.228.camel@cutter>
On Sat, 2007-08-04 at 20:31 +1000, Tony Crouch wrote:
> Hi All,
> I was wondering if someone might be able to help me with this easier (?)
> upgrade solution between FC6 and FC7.
> 
> I am wanting to do a fresh-install of FC7 on my notebook but don't really
> want to go to the hassle of having to remember all of the RPM and
> additional packages I have installed while using FC6.
> 
> I was thinking I could possibly do the following to write my rpm database
> to a file:
> 
> rpm -qa > rpm-database-file
> 
> Then, once having loaded FC7 I could possibly do the "cmp" or "diff"
> commands between the rpm-database-file-FC6 and rpm-database-file-FC7.
> 
> Then, having the differences of the two files (which correlates to the
> additional files installed while using FC6), is it possible to "import"
> this list into yum.
> 
> I was thinking (but am not really sure whether it is practically possible:
> 
> yum -y < rpm-differences-database-file
> 
> Was wondering if someone might either be able to shed some light on this
> for me or possible provide an alternate option they've been using?
> 

You would really just want to output the package names, not the whole version info so:

rpm -qa --qf "%{name}\n" > mypkglist

then diff that versus the same thing once you reinstall

then just install each of those pkgs.

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.