add a script in yum.conf


in my machine, i add this ini yum.conf

set disable program update, ex : openoffice.org and google-chrome
exclude=openoffice.org-ure*,google-*

set trying to refresh (1800 = 30 minutes)
metadata_expire=2592000

set update yum under proxy, port, username and password :
proxy=http://[proxy]:[port]
proxy_username=[username]
proxy_password=[password]

ex. proxy=172.20.2.1 port=3128 username=UserName password=Password

proxy=http://172.20.2.1:3128
proxy_username=UserName
proxy_password=Password

in terminal, for update yum:
yum clean all
yum repolist
yum update

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: