Re: how to specify directory for yum installation

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

 



If you have the rpm why not use rpm2tar and extract to whichever directory you want? I'm guessing if you want it to go to a different directory you don't want the rpm scripts to run anyway.

Sent from my iPhone

On Jun 22, 2011, at 5:57 PM, "Fajar A. Nugraha" <work@xxxxxxxxx> wrote:

> On Thu, Jun 23, 2011 at 6:23 AM, Erming Pei <erming@xxxxxxxxxxx> wrote:
>>  Hi James,
>> 
>> I tried with --installroot, and it's not what I want. For example,
>> #yum --installroot=/opt  install Soft_pkgs
>> #ls /opt
>>  cache/ lib/ ...
>> (all yum stuff, not the software I needed.)
> 
> Short answer, you can't.
> 
> Long answer, --installroot is particularly useful if you want to
> create/work on an alternate root installation, e.g. when rescuing a
> broken system, or installing an OS template for a VPS. If you want to
> move the binary location of some (not all) packages (e.g. move bash
> from /bin/bash to /opt/bash/bin/bash), then you can't do that with yum
> and normal distro-provided rpm. You need to create a special rpm for
> that. See http://www.rpm.org/max-rpm/s1-rpm-reloc-building-relocatable.html
> 
> -- 
> Fajar
> 
> 
>> 
>> Thanks,
>> 
>> Erming
>> 
>> 
>> 
>> On 6/22/11 9:31 AM, James Antill wrote:
>>> 
>>> Erming Pei<erming@xxxxxxxxxxx>  writes:
>>> 
>>>>  Hi,
>>>> 
>>>>  Does anyone know about that how to specify root directory for yum
>>>> installation?
>>>> I tried with putting $_prefix in .rpmmacros, but it doesn't work.
>>>>  And yum --installroot option seems not the solution too.
>>> 
>>>  --installroot does specify the _root_ directory. If you want to
>>> specify the --prefix, you can't do that.
>>> 
> _______________________________________________
> Yum mailing list
> Yum@xxxxxxxxxxxxxxxxx
> http://lists.baseurl.org/mailman/listinfo/yum
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


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

  Powered by Linux