LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2013, 03:34 AM   #1
TheCorporation
Member
 
Registered: Mar 2013
Posts: 54

Rep: Reputation: Disabled
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.
 
Old 05-15-2013, 03:41 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
 
2 members found this post helpful.
Old 05-15-2013, 03:47 AM   #3
TheCorporation
Member
 
Registered: Mar 2013
Posts: 54

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
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

Last edited by TheCorporation; 05-15-2013 at 03:53 AM.
 
Old 05-15-2013, 03:48 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
then use the syntax I mentioned above to uninstall any of the rpm(s).
 
2 members found this post helpful.
Old 05-15-2013, 04:01 AM   #5
TheCorporation
Member
 
Registered: Mar 2013
Posts: 54

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
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]#
 
Old 05-15-2013, 04:09 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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!

Last edited by Satyaveer Arya; 05-15-2013 at 04:11 AM.
 
2 members found this post helpful.
Old 05-15-2013, 04:17 AM   #7
TheCorporation
Member
 
Registered: Mar 2013
Posts: 54

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
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?
 
Old 05-15-2013, 04:48 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove existing rpm and install latest downloaded package samiksha Linux - Software 9 12-08-2010 04:49 AM
cannot remove partially downloaded packages Yogesh Bhavsar Linux - Software 5 05-21-2010 12:37 PM
How to save a rpm downloaded & installed by "yum install xxx.rpm" command shashi1234567 Linux - Networking 3 12-25-2009 10:49 AM
SuperKaramba remove downloaded themes completely jimdaworm Linux - Software 8 09-20-2005 11:45 PM
Where should downloaded RPM's Go? WanabeLinus Mandriva 5 02-08-2004 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration