loading fresh system from rpm list?

Eric Shubert ejs at shubes.net
Mon Nov 23 13:10:37 MST 2009


I'd be interested to see that list, Steven. Any chance of sharing it?

Steven A. DuChene wrote:
> The original system is a VERY minimal install and that is what
> the owner wants me to mimic on the second system. He very carefully
> went through and removed any packages he did not absolutely need
> so rather than duplicate that work I thought I could somehow just
> work from his list of rpms on the original system.
> 
> -----Original Message-----
>> From: R P Herrold <herrold at owlriver.com>
>> Sent: Nov 23, 2009 2:54 PM
>> To: "Steven A. DuChene" <linux-clusters at mindspring.com>, Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
>> Subject: loading fresh system from rpm list?
>>
>> On Mon, 23 Nov 2009, Steven A. DuChene wrote:
>>
>>> I have been requested to load a duplicate system based on the
>>> list of rpms present on the original system. This is a CentOS
>>> Does anyone know of a tool that would allow me to do a fresh
>>> load of a bare system based on a list of desired rpms?
>> master:
>> 	rpm -qa --qf '%{name}\n' | grep -v kernel | sort |  \
>> 		uniq >  /tmp/rpmlist.txt
>>
>> clone:
>> 	do a minimal install
>>
>> 	scp master:/tmp/rpmlist.txt .
>>
>> 	yum install rpmlist.txt
>>
>> Then on the clone, run:
>> 	rpm -qa --qf '%{name}\n' | grep -v kernel | sort |  \
>> 		uniq >  /tmp/rpmlist.txt
>>
>> 	diff -u rpmlist.txt /tmp/rpmlist.txt
>>
>> and
>> 	rpm -e any strays present on the clone,
>>
>> and note anything not present, and repair to taste [this can 
>> happen over time as the items in a point respin change, or if 
>> a non-CentOS archive is used]
>>
>> - Russ herrold
> 
> 
> 


-- 
-Eric 'shubes'



More information about the PLUG-discuss mailing list