LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I remove a downloaded rpm's (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-remove-a-downloaded-rpms-4175462051/)

TheCorporation 05-15-2013 03:34 AM

How do I remove a downloaded rpm's
 
Hi,

I downloaded some of this stuff - "http://safesrv.net/install-openvpn-on-centos/"

I got down to "Build the rpm packages:" before it failed so now I'm trying to figure out how to remove it all.

Anyone know the remove command for this?

Any advice will be much appreciated.

Satyaveer Arya 05-15-2013 03:41 AM

Did you follow the steps given on the link you mentioned above?
If you have installed any rpm then you can use-
Code:

rpm -e <rpm_name>
to uninstall an rpm.

TheCorporation 05-15-2013 03:47 AM

Quote:

Originally Posted by Satyaveer Arya (Post 4951523)
Did you follow the steps given on the link you mentioned above?
If you have installed any rpm then you can use-
Code:

rpm -e <rpm_name>
to uninstall an rpm.


I downloaded all of this stuff....

yum install gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel -y

wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm

wget http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm

rpmbuild --rebuild lzo-1.08-4.rf.src.rpm
rpm -Uvh lzo-*.rpm

Satyaveer Arya 05-15-2013 03:48 AM

then use the syntax I mentioned above to uninstall any of the rpm(s).

TheCorporation 05-15-2013 04:01 AM

Quote:

Originally Posted by Satyaveer Arya (Post 4951533)
then use the syntax I mentioned above to uninstall any of the rpm(s).

Does this mean that it is removed?....

[root@localhost vmware]# rpm -e rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel -y
-y: unknown option
[root@localhost vmware]# rpm -e rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel
[root@localhost vmware]# rpm -e wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
error: package http://openvpn.net/release/lzo-1.08-4.rf.src.rpm is not installed
[root@localhost vmware]# rpm -e wget http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm
error: package http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm is not installed
[root@localhost vmware]# rpm -e rpmbuild --rebuild lzo-1.08-4.rf.src.rpm
--rebuild: unknown option
[root@localhost vmware]# rpm -e rpm -Uvh lzo-*.rpm
error: open of rpm failed: No such file or directory
warning: lzo-1.08-4.rf.src.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
[root@localhost vmware]#

Satyaveer Arya 05-15-2013 04:09 AM

Quote:

[root@localhost vmware]# rpm -e rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel -y
-y: unknown option
there is no need to use -y when using rpm command to uninstall an rpm.

Quote:

[root@localhost vmware]# rpm -e rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel
this would have removed all the mentioned rpms.

Quote:

[root@localhost vmware]# rpm -e wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
error: package http://openvpn.net/release/lzo-1.08-4.rf.src.rpm is not installed
when uninstalling an rpm you don't have to mention the web link. the command you used is wrong. In this wget command is to get the rpm on your system from internet. And with this you are using "rpm -e", it will not work.

Check if the lzo rpm is installed or not. Using-
Code:

# rpm -qa lzo
And if it is installed then use rpm command with "e" switch to uninstall.

Quote:

[root@localhost vmware]# rpm -e wget http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm
error: package http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm is not installed
Again the same thing.


Again I'm mentioning here that if you have to uninstall any of the rpm, use-
Code:

rpm -e <package_name>
Good Luck!

TheCorporation 05-15-2013 04:17 AM

Quote:

Originally Posted by Satyaveer Arya (Post 4951546)
there is no need to use -y when using rpm command to uninstall an rpm.


this would have removed all the mentioned rpms.


when uninstalling an rpm you don't have to mention the web link. the command you used is wrong. In this wget command is to get the rpm on your system from internet. And with this you are using "rpm -e", it will not work.

Check if the lzo rpm is installed or not. Using-
Code:

# rpm -qa lzo
And if it is installed then use rpm command with "e" switch to uninstall.


Again the same thing.


Again I'm mentioning here that if you have to uninstall any of the rpm, use-
Code:

rpm -e <package_name>
Good Luck!

I run that command and got this....

[root@localhost vmware]# rpm -qa lzo
[root@localhost vmware]#

I'm only a newbie to Linux but I'm guessing that means it is removed?

Satyaveer Arya 05-15-2013 04:48 AM

Quote:

I run that command and got this....

[root@localhost vmware]# rpm -qa lzo
[root@localhost vmware]#

I'm only a newbie to Linux but I'm guessing that means it is removed?
I think when you build lzo rpm, that wasn't build.
So, it shows here that the rpm hasn't been installed.


All times are GMT -5. The time now is 12:27 PM.