deleting multiple rpm packages using the command line
Hello all: I've installed openoffice 2.0.4 from the openoffice site. Now I have several packages called openoffice.org-xxxxx-2.0.4- 5. How could I remove all these packages using "rpm -e" on the command line in one command? I don't want to run "rpm -e" individually for every package. TIA, IG _________________________________________________________________ Ossza meg barátaival fényképen megörökített élményeit! http:\\fototar.t-online.hu
On Sunday 29 October 2006 11:09, Istvan Gabor wrote:
Hello all:
I've installed openoffice 2.0.4 from the openoffice site. Now I have several packages called openoffice.org-xxxxx-2.0.4- 5. How could I remove all these packages using "rpm -e" on the command line in one command? I don't want to run "rpm -e" individually for every package.
First, test with -q to make sure you only match the packages you want to uninstall, with rpm -qa openoffice.org-\*-2.0.4-5 or something. Modify the expression until you see all the packages, and only the packages, that you want to uninstall. Once it's correct, you do rpm -e $(rpm -qa openoffice.org-\*-2.0.4-5) or whatever you found was the correct expression
Hi Anders:
First, test with -q to make sure you only match the packages you want to uninstall, with
rpm -qa openoffice.org-\*-2.0.4-5
or something. Modify the expression until you see all the packages, and only the packages, that you want to uninstall. Once it's correct, you do
rpm -e $(rpm -qa openoffice.org-\*-2.0.4-5)
This method works except that -2.0.4-5 must not be included since it is the version number and rpm requires the package name only w/o version number. Thank you, IG _____________________________________________________________________ Kamatmentes vásárlás 45 napig! Különleges mindennapok az [origo] klikkbank hitelkártyával. http://www.klikkbank.hu/lakossagi/termekek/hitelkartya/index.html
On Monday 30 October 2006 13:08, Istvan Gabor wrote:
Hi Anders:
First, test with -q to make sure you only match the packages you want to uninstall, with
rpm -qa openoffice.org-\*-2.0.4-5
or something. Modify the expression until you see all the packages, and only the packages, that you want to uninstall. Once it's correct, you do
rpm -e $(rpm -qa openoffice.org-\*-2.0.4-5)
This method works except that -2.0.4-5 must not be included since it is the version number and rpm requires the package name only w/o version number.
Actually, rpm will accept the version number, it works quite well the way I gave it, I tested it before I sent it :)
Istvan Gabor wrote:
Hello all:
I've installed openoffice 2.0.4 from the openoffice site. Now I have several packages called openoffice.org-xxxxx-2.0.4- 5. How could I remove all these packages using "rpm -e" on the command line in one command? I don't want to run "rpm -e" individually for every package.
rpm -e package1.rpm package2.rpm ..... packageN.rpm -- Until later, Geoffrey Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin
participants (3)
-
Anders Johansson
-
Geoffrey
-
Istvan Gabor