setting root in python script
Miroslav Suchý
msuchy at redhat.com
Mon May 4 10:39:47 UTC 2020
Dne 30. 04. 20 v 16:38 James Antill napsal(a):
> You probably want to set the go faster flags (see
> http://yum.baseurl.org/wiki/YumCodeSnippet/ListInstalledPkgs.html)
Nice!
>
>> But now, I want to support --root option in my script and allow to
>> use different root.
> root="/tmp/mychroot"
> trans = rpm.TransactionSet(root)
Yup, that works!
Although at the end I end up using:
rpm.TransactionSet(rootdir=root)
which is just the same.
Thank you James.
--
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
More information about the Rpm-list
mailing list