Installing RPMs in Linux

I always forget because it’s infrequent that I actually have to maintain servers but from time to time I have to match our in-house dev box with production environments. This is primarily for my recollection but hopefully it helps others too:

Checking if package exists:

rpm -q package-name

Downloading RPMs from remote site:

wget http://www.site.com/path/to/file-with-long.name.i386.rpm

Installing new package:

rpm -ivh file-with-long.name.i386.rpm

Removing package:

rpm -e file-with-long

Updating existing package:

rpm -UvH file-with-long.name.i386.rpm

1 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 5 (1 votes, average: 5 out of 5)
Loading ... Loading ...


Leave a Reply

You must be logged in to post a comment.