[Yum] Hardcoded paths throughout yum
seth vidal
skvidal at fedoraproject.org
Wed Feb 6 05:06:29 UTC 2008
On Tue, 2008-02-05 at 13:32 -0800, Dan Nicholson wrote:
> Hi,
>
> Currently, all the paths in yum are hardcoded into the source files
> (/usr/share/yum-cli, /etc/yum.conf, etc.). It would be nice if these
> could be changed at build time to support an installation not to /usr.
>
> Would you be interested in having this functionality? I got about
> halfway through a patch and then decided I should ask in case it has
> no chance of being applied. The method I'm using is pretty simple.
> There's a top-level config.mk that has the prefix/bindir type
> variables and a substitution function. Any files containing pathnames
> have been moved to *.in files and then run through the sed
> substitution to get the final files.
>
> The reason I'm interested in this is for the purposes of bootstrapping
> a system. I'd like to use a yum with an alternate prefix that won't
> conflict with the real (to be installed) yum.
>
> Any interest? Thanks.
>
Not very likely to be applied, but thanks for asking. It's pretty far
out on the edge as a case and if you want to run a local/special
instance of yum you don't have to install it. Just run it from the
source dir:
PYTHONPATH=`pwd` ./yummain.py command arg arg
-sv
More information about the Yum
mailing list