Showing posts with label rpm or yum. Show all posts
Showing posts with label rpm or yum. Show all posts

Tuesday, February 24, 2009

download rpm using yum, but do not install, --downloadonly doesn't download,

Yum can be used to download(only) suitable rpm and its dependencies.
Yum downloadonly plugin is required to download rpms without installing them.
First, install downloadonly plugins using the command:

# yum install yum-downloadonly

Now you can download any rpm without installing. For example to download tomcat5-webapps & its all dependencies in current directory ( . ), I have used the following command:

#yum install --downloadonly --downloaddir . tomcat5-admin-webapps tomcat5-webapps

Monday, February 23, 2009

connect yum using proxy, yum cannot connect through proxy

Yum can connect with external repository if http_proxy , ftp_proxy environment variables are set properly.

Set the environment variables (from command line):

# http_proxy="http://192.168.1.1:3128"
# ftp_proxy="http://192.168.1.1:3128"

/* if PROXY host is http://192.168.1.1/ & PROT is 3128 */
Export the variable (from command line):

# export http_proxyexport ftp_proxy

Test yum & reply me.

Friday, June 27, 2008

Find out a package which a file belongs to

Find out a package which a file belongs to
If some files are deleted or corrupted from Linux system, such as /bin/bash, /bin/mount then how can I find these file belongs to what RPM?

Just use the command "rpm -qf /bin/bash" , this will report the name of the package (bash-3.2-9.fc7 in my system) which contaions the file.

Art Auctions starting at $1