[Yum] $distribution ???

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

 



> This very much interests me.  I auto-generate my yum.conf files, and 
> it's a hassle to not have the distribution available at run-time as a 
> substition variable.  I currently have to know whether the client I'm 
> generating for is Fedora or RedHat so I can generate the correct file. 
> If $distrubution were available, all of the files would be identical.
> 

why not just use:
$YUM#
#== 0-9

and define that variable in your system shell environment.


Then you can do in your shell:
export YUM0='fedora'

and in your yum.conf
[foo]
name=$YUM0 distribution $releasever $basearch
baseurl=http://download.$YUM0.redhat.com/$releasever/$basearch/


-sv



[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