Download and install an RPM file on fly from ftp or http server

by on November 1, 2006 · 2 comments· Last updated November 1, 2006

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.



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 2 comments… read them below or add one }

1 hello November 1, 2006 at 10:30 pm

Also security nightmare is downloading rpms to /tmp and instaling them with rpm -ivh something_*_

Reply

2 nixcraft November 1, 2006 at 11:06 pm

That is why you need to use up2date or verify integrity of an RPM file.

Appreciate your post.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 7 + 15 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: