echo
[fedora_repo] >>
/etc/yum
.repos.d
/fedora_repo
.repo
#allow yum access to the fedora repo
echo
name=fedora_repo >>
/etc/yum
.repos.d
/fedora_repo
.repo
echo
baseurl=http:
//download1
.fedora.redhat.com
/pub/epel/
\$releasever/\$basearch/ >>
/etc/yum
.repos.d
/fedora_repo
.repo
echo
enabled=1 >>
/etc/yum
.repos.d
/fedora_repo
.repo
echo
skip_if_unavailable=1 >>
/etc/yum
.repos.d
/fedora_repo
.repo
echo
gpgcheck=0 >>
/etc/yum
.repos.d
/fedora_repo
.repo
yum -y
install
ssmtp
sed
's/^enabled=1/enabled=0/'
-i
/etc/yum
.repos.d
/fedora_repo
.repo
#disable fedora repo
sumber : https://mbrownnyc.wordpress.com/2012/04/12/using-ssmtp-on-centos-6/
No comments:
Post a Comment