LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-26-2011, 04:05 AM   #1
harsh9772
LQ Newbie
 
Registered: Jun 2011
Location: india
Distribution: ubuntu, fedora
Posts: 2

Rep: Reputation: Disabled
remove all rpms stored in a file


i have stored a list of packages in a file packages.txt

i need to uninstall all these rpm packages. As there are around 600 packages, its not possible to remove manually using 'rpm -ev <pkg>' everytime.

can someone suggest me any other way, some script or anything??
 
Old 06-26-2011, 04:19 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

You can use something like
Code:
for i in $(cat package.txt); do rpm -ev $i; done
Kind regards
 
Old 06-26-2011, 04:40 AM   #3
harsh9772
LQ Newbie
 
Registered: Jun 2011
Location: india
Distribution: ubuntu, fedora
Posts: 2

Original Poster
Rep: Reputation: Disabled
so this has to be saved as 'rem.sh'
and then i shud b executing it as ./rem.sh or is the command to be written directly at the command prompt.
 
Old 06-26-2011, 04:41 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can write at the prompt or make a script.

Kind regards
 
  


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
Remove stored identities from ssh-agent vinaytp Linux - Newbie 3 03-15-2010 06:09 AM
where are rpms from repositories stored sumeet inani SUSE / openSUSE 3 11-30-2009 11:04 AM
could someone remind me where rpms are stored locally? geekpie Fedora 5 09-05-2009 09:08 AM
Remove RPMs? xperience Linux - Newbie 2 12-12-2003 11:04 AM
where are the rpms stored chens_83 Linux - Newbie 5 01-03-2002 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:53 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