Custom Search

Saturday, April 11, 2009

download rpm using yum without installing it

To download rpm packages using yum, just perform the following things,

First, download yum-downloadonly plugins
Command: yum install yum-downloadonly

Second, now download any rpm without installing it.
Example command, yum install --downloadonly --downloaddir . telnet

This will download the rpm package telnet in current directory.


Thursday, February 19, 2009

yum through proxy with authentication, username & password proxy support

See the Basic setting & then try to apply the following ---

http_proxy="http://username:passwd@192.168.1.1:3128" /* if PROXY host is http://192.168.1.1 & PROT is 3128 */
ftp_proxy="http://username:passwd@192.168.1.1:3128"

Don't forger to export the environment variables!!!!!

yum through proxy, squid proxy, cannot connect through proxy, yum behind proxy

If you are behind a proxy, yum will not connect via proxy.
(Remember you had to put proxy information in Firefox Web Browser to connect with internet).

So, for yum, you have to put the same settings.

First, set the environment variable(s) for yum:

http_proxy="http://192.168.1.1:3128" /* if PROXY host is http://192.168.1.1 & PROT is 3128 */
ftp_proxy="http://192.168.1.1:3128"

Second, export the variable:

export http_proxy
export ftp_proxy

Third, run your yum command!!!!
 
Watch the latest videos on YouTube.com