Re: clone

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

 



Patrick Dupre wrote:
> Hello,
> 
> I would like to clone with updating a machine.
> I get the list of installed package (yum list installed)
> Then I can make a minimum installation followed by an upgrade the packages.
> How would you recommend me to do this step ?
> 
> Thank for your help.

Maybe some as this?:

# get (unique) package list (from 'yum list installed' output):
yum list installed|awk '(NF == 3){print gensub(/\.[^.]*$/,"",1,$1)}'|sort|uniq >old-rpm-list

# get list of RPMs on minimal F18 installation:
rpm -qa --queryformat '%{NAME}\n'|sort|uniq >new-rpm-list

# install RPMs which was only on old Fedora distro:
comm -2 -3 old-rpm-list new-rpm-list|xargs -r yum install

PS: You perhaps can omit to excluding already installed packages, yum
should solve this.
-- 
Franta H.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux