LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2003, 07:11 AM   #1
G-Fox
Member
 
Registered: Jul 2003
Location: Lithuania
Posts: 45

Rep: Reputation: 15
Question what is the fastest way to remove rpms without x-windows?


Hello everybody

I try to remove packets with rpm command and everything is ok, but if I need to remove 20 packets it takes some time.
Maybe is another way to do this faster and don't use x-windows?
(I need do everything in text mode)

Thanks
 
Old 08-17-2003, 07:12 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
I think you can use a file which lists the package names. Try man rpm for more info.
 
Old 08-17-2003, 07:14 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You could create a text file with the names of the packages then write a script to run through and remove them.
 
Old 08-17-2003, 11:56 AM   #4
G-Fox
Member
 
Registered: Jul 2003
Location: Lithuania
Posts: 45

Original Poster
Rep: Reputation: 15
Thank you good people for help

I just made my first script
 
Old 08-17-2003, 10:47 PM   #5
JreL
LQ Newbie
 
Registered: Aug 2003
Location: Tracy, California
Posts: 17

Rep: Reputation: 0
Any tutorials on script making, or at least an example on what u made g-fox?.. U know a script to del the RPMs u wanted.
 
Old 08-18-2003, 12:30 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I don't know what G-ox used but I would assume it to be somehting like:
Code:
#!/bin/bash
IFS="
"
for package in `/root/packages.txt`; do
echo Now removing $package
rpm -e $package
done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RPM hell, how to remove source rpms? baudchaser Linux - Newbie 3 02-13-2004 10:16 AM
Remove RPMs? xperience Linux - Newbie 2 12-12-2003 11:04 AM
List and remove rpms linuxturtle Linux - General 3 09-24-2003 01:01 AM
Remove Windows Partition TekniDude Linux - Newbie 1 08-24-2003 03:13 PM
Remove windows How?????? Zarik Linux - Newbie 2 02-15-2003 05:12 AM


All times are GMT -5. The time now is 03:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration