Hello all.

>>
>> However, I want to do a manual yum install of a package and
>> I don't see a "test" option in the man page, similar to the
>> rpm --test option - an option I relied on heavily to keep
>> from shooting myself in the foot.
>>
>> Is there a way to do a "test" with yum?  So far google hasn't
>> helped, or I'm not looking in the right places.

You could use yum-tsflags yum plugin which allows
passing arbitary flags to RPM transaction.

1) Install it: yum install yum-tsflags
2) Enable it: in /etc/yum/pluginconf.d/tsflags.conf
3) Example usage:

   # rpm -q xsane
   package xsane is not installed

   # yum --tsflags="test" install xsane
   ...
   Is this ok [y/N]: y
   Downloading Packages:
   (1/1): xsane-0.92-13.i386 100% |=========================| 1.3 MB   00:00
   Running Transaction Test
   Finished Transaction Test
   Transaction Test Succeeded
   Running Transaction

   Installed: xsane.i386 0:0.92-13
   Complete!

   # rpm -q xsane
   package xsane is not installed

The above is equivalent to using --test on rpm command line.


Best Regards

Jarek

__
-------------------------------------------------------
_ Jaroslaw_Polok ___________________ CERN - IT/FIO/LA _
_ http://home.cern.ch/~jpolok ___ tel_+41_22_767_1834 _
_____________________________________ +41_78_792_0795 _

Reply via email to