Download and install an RPM file on fly from ftp or http server
Many books or free Linux tech support recommends downloading an RPM file using wget and installing it using rpm command. For example to install awstats rpm:
Go to /tmp directory
$ cd /tmp
Download awstats using wget
$ wget http://easynews.dl.sourceforge.net/sourceforge/awstats/awstats-6.5-1.noarch.rpm
Now install awstats
$ sudo rpm -ivh awstats*OR# rpm -ivh awstats*
To be frank you can skip all three steps with one command:
# rpm -ivh http://easynews.dl.sourceforge.net/sourceforge/awstats/awstats-6.5-1.noarch.rpmOutput:
Retrieving http://easynews.dl.sourceforge.net/sourceforge/awstats/awstats-6.5-1.noarch.rpm Preparing... ########################################### [100%] 1:awstats ########################################### [100%]
RPM command is capable of downloading and installing an RPM file on fly. This is will save your time.
Please note that only use this method if you trust remote server/rpm file. Otherwise it will be a security nightmare for you.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- Solaris > How to configure LAN Card (NIC)
- Synchronize the system clock to Network Time Protocol (NTP) under Fedora or Red Hat Linux
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- FreeBSD Gnome Installation howto
- Install PHP 5 on Red Hat Enterprise Linux version 4
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Also security nightmare is downloading rpms to /tmp and instaling them with rpm -ivh something_*_
That is why you need to use up2date or verify integrity of an RPM file.
Appreciate your post.