Notifications
Clear all

How can we find the yum variables been declared in linux ?  

  RSS

amrit_3327
(@amrit_3327)
Trusted Member
Joined: 11 months ago
Posts: 57
17/10/2020 8:33 pm  

Variables such as basearch, releasever etc


Quote
Topic Tags
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 11 months ago
Posts: 57
17/10/2020 8:34 pm  
python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'

 

Above command will provide the detailed out put for yb.conf


ReplyQuote
Share: