๐Ÿ’ปTech/๐ŸงLinux

[๋ฆฌ๋ˆ…์Šค] yum $releasever ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•

_viper_ 2020. 4. 1. 20:16
๋ฐ˜์‘ํ˜•

yum repository์—์„œ $releasever ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ ์ž˜๋ชป ์„ค์ •๋˜์–ด ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋Š”๋ฐ์š”

/etc/yum/vars/releasever ์ƒ์„ฑ ๋˜๋Š” ๋ณ€๊ฒฝํ•˜์—ฌ ์กฐ์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

๐Ÿšซ ERROR 

https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7.7-10.el7-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

 

๐Ÿ’ก SOLVED

$ echo "7.7" > /etc/yum/vars/releasever

 

์กฐํšŒ ๋ฐฉ๋ฒ•

$ python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'