Re: files like parameter to YUM

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Les Mikesell <[email protected]> writes:

> On Wed, May 23, 2012 at 8:26 AM, James Antill <[email protected]> wrote:
>> Isaac Cortés <[email protected]> writes:
>>
>>> I did a tex file with all my packages installed, but I'll format all HD of
>>> my PC; but I want all my software again so ca I use this file like an input
>>> to 'yum install <file>'?
>>
>>  There's yum-debug-dump and yum-debug-restore. You may also want to
>> look at yum history.
>
> Is that a reasonable (or the best) way to reproduce the running
> package set on a different machine?    Could you use it to do
> 'reproducible updates" to match a tested set even if newer packages
> had been introduced to the repositories?

 Yes, you can use it to do that ... however there is an easier way
specifically designed for that case. If you have two machines (say
"prod" and "test") that are in state FOO, and you update "test" to BAR
and then want to update "prod" to the exact same thing the easiest
thing to do is use the "yum transaction file" from history.

 Eg.

# test
yum -q history addon-info last saved_tx > my-BAR-update.yumtx
# prod
yum load-transaction my-BAR-update.yumtx

...this does a number of checks, including making sure that both
machines were indeed in the same initial state.

 If you disable history for some reason, you can get an automatic yum
transaction file by using:

yum upgrade --assumeno

...and looking at the temporary filename.

-- 
James Antill -- [email protected]
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.