Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
well i opened that url http://mirrorlist.centos.org as you said but it didnt return any error and opened easily and ya i did yum clean all and then yum check-update after that but i still got the same thing...
Oh yes, just crossed my mind, is there a http proxy up front of that CentOS box? If there is you'd probably want to set yum to use it or export the http_proxy variable.
well can you please tell me what is the use of "yum --disableplugin=fastestmirror check-update -d6" command?because i have totry it on a live server and cant use it unless i'm very sure about what the command really does....please don't mind...
and i didnt understand what you meant by http proxy and all that...can you please elaborate on that?
Sarah, if you're not comfortable then don't run any of the commands i've input. No harm to be paranoid.
In my LANs, no servers can access ftp, http and other ports directly (to prevent shell users or if the server is compromised) to download anything. The traffic going out is purposely not NATed or Masqueraded out.
So to allow something like yum which needs to access http, i need to export a http_proxy variable to yum so it knows to use a squid http proxy somewhere in my LANs.
If you're not using a http proxy then it's safe to ignore the suggestion as well. I'm betting it has to do with a http proxy or perhaps on the isp side.
ell my boss isn't here and cant contact him either....i think he has used http proxy as he is really concerned with the securities,if so how should i be exporting the http variable or is there a way to know if http proxy is being used??
and you also told about the isp side?what could be wrong in the isp side?
About the isp, in one of our co-los, the isp puts a transparent http proxy, was a cisco webcache or something. The cache was dirty or stale. Once we get them to remove us (routing) from the being http cached transparently, yum worked nicely since.
#vi /etc/yum.conf
in the [main] section at the bottom write
http_proxy=http://(your_proxy_address):(port no.)
export http_proxy=http://your_proxy_address:(port)
then go to
Code:
#vi /root/.bash_profile
(add this in the last line)
export http_proxy=http://your_proxy_address:(port)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.