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

Re: files like parameter to YUM

Les Mikesell <lesmikesell@xxxxxxxxx> writes:

> On Wed, May 23, 2012 at 8:26 AM, James Antill <james-yum@xxxxxxx> wrote:
>> Isaac Cortés <isaac18490@xxxxxxxxx> 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.


# 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 -- james@xxxxxxx
Yum mailing list

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux