Ask Your Question

how to remove a rpm package

asked 2012-05-31 06:12:34 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I am using fedora 16 x86-64 and i had install virtualboxi686.The problem is that i cannot remove it to install virtualboxx86-64!! Please help me out here!!

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2012-06-01 21:43:28 -0500

Sriram gravatar image

updated 2012-06-01 21:45:18 -0500

sudo rpm -e `rpm -qa | grep -i virtualbox `
edit flag offensive delete link more

answered 2012-05-31 08:14:01 -0500

skytux gravatar image

In Fedora we use yum to install/remove packages.

Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages.

# yum install package

# yum remove package



edit flag offensive delete link more



@ztank you are completely right, but a newbie should learn using yum in Fedora as his/her first package manager to install/remove packages, because I think rpm is more advanced and you should be very careful to not to brake things... it's only my opinion :)

skytux gravatar imageskytux ( 2012-05-31 10:33:56 -0500 )edit

Yum will find dependencies with package removal. It's best to learn to use yum to remove packages as well, because if there are packages that require the package you want to remove, it will include them in the yum remove transaction, as well as ask for confirmation before performing the action.

wquine gravatar imagewquine ( 2013-06-03 17:30:58 -0500 )edit

answered 2012-05-31 07:19:42 -0500

ztank1013 gravatar image
sudo rpm -e <package-name> # <- only the name! no rpm extension

To find the package name just run something like this

rpm -qa | grep -i virtualbox
edit flag offensive delete link more

Question Tools


Asked: 2012-05-31 06:12:34 -0500

Seen: 37,177 times

Last updated: Jun 03 '13