Skip to content

Roger Hosto

Good Talk

Menu
  • Home
  • Blogs
    • Databases Administration
      • MySQL
      • NoSQL
    • Development
    • Open Source Software
    • System Administration
  • Resume
  • About
Menu

Configuring YUM to use a Proxy Server.

Posted on August 2, 2009 by webgeek

There are two basic ways that you can configure YUM to use a proxy server.

First is by editing the yum.conf file pop over to this web-site. The yum.conf is usually localed in the /etc directory. You will need to add couple of parameters depending on your proxy configuration.

1.) The first parameter is to add the proxy server to the yum.conf.

# The proxy server – proxy server:port number
proxy=http://yum.proxy.server:3128

2.) Now If a username and password is required to login to the proxy server.

# The account details for yum connections
proxy_username=username
proxy_password=password

The second way is by configuring the user’s environmental variables.

1.) The first way is just by adding the proxy server information.

bash> http_proxy=”http://yum.proxy.server:3128″
bash> export http_proxy

2.) The second way is by adding the proxy server with an username and password.

bash> http_proxy=”http://username:password@yum.proxy.server:3128″
bash> export http_proxy

 

Category: System Administration

Leave a Reply

You must be logged in to post a comment.

  • Back to Basics: ORM and Its Impact on Database and Data Architecture
  • MySQL Error: 1062 'Duplicate entry' Error
  • Installing MariaDB 10.1 on CentOS 6.8
  • Linux Mint
  • Querying Apache Hadoop Resource Manager with Python.
  • LinkedIn
© 2026 Roger Hosto | Powered by Minimalist Blog WordPress Theme