Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

All you have to know about RPM

by Alexandre de Abreu

How can I install a package directly from Internet? Can I use a proxy?

RPM can be used to install and update directly from the network. You don't need to download the package and then installs it, RPM can do it for you. It supports both HTTP and FTP protocols. To install/upgrade from a FTP server, the syntax is:

rpm -Uvh ftp://user:pass@ftpserver/directory/package.rpm

You can exclude user/pass credentials and login as anonymous/ftp user if you want. The following command will connect using a Proxy Server and then lists the contents of the package "remote-package.rpm":

rpm -qpl --ftpproxy proxyserver --ftpport port ftp://ftpserver/dir/remote-package.rpm

Where "proxyserver" can be the hostname or IP address of your Proxy Server as well as "port" is the listening port on that server. The same rules apply to HTTP protocol, so the following command uses a Proxy Server to query the required packages for "remote-package.rpm" installation:

rpm -qpR --httpproxy proxyserver --httpport port http://webserver/dir/remote-package.rpm