LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-20-2004, 09:08 AM   #1
tipaul
Member
 
Registered: Apr 2003
Location: Laval, Quebec, Canada
Distribution: Ubuntu
Posts: 121

Rep: Reputation: 15
Removing multiple packages


As i saw from the KDE3.3, we need to remove theses packages before installing 3.3...

How can we remove all kde* related packages?

Since the command "removepkg" don't accept wildcards (*)...!!!

And i don`t want to do them one by one!... That's absurd for an advanced system...

Regards,
Ti-Paul.
 
Old 08-20-2004, 09:10 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
upgradepkg

this will remove and install at the same time.
 
Old 08-20-2004, 03:32 PM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
You could also remove a group of selected packages with pkgtool - if you weren't upgrading them and just wanted to remove them.
 
Old 08-21-2004, 06:17 AM   #4
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Use this site's search and look for 'diskset' w/o '. Feedback here or at my original post would be appreciated.

ppd
 
Old 08-21-2004, 07:03 AM   #5
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
Quote:
Originally posted by Franklin
You could also remove a group of selected packages with pkgtool - if you weren't upgrading them and just wanted to remove them.
Do what he says ^^^

Or if you have swaret just type 'swaret --remove kde' and it will prompt you for a yes or no with any packages that are related to kde.
 
Old 08-21-2004, 08:32 AM   #6
tipaul
Member
 
Registered: Apr 2003
Location: Laval, Quebec, Canada
Distribution: Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
Exclamation pkgtool

Some didn't look carefully at my post...

I asked for a way of doing it NOT ONE BY ONE...

In pkgtool, you MUST select them one by one also...

The best answer so far is for swaret... I'll use it for "group packaging"... That seem to be the answer...

Thanks,
 
Old 08-21-2004, 09:41 AM   #7
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
I take no responsibility if you screw up your install but you could use simple command substitution:

Code:
removepkg -warn $(ls /var/log/packages/kde*)
this will dump what would be deleted to the screen. remove -warn to actually do the removal.
 
1 members found this post helpful.
Old 08-21-2004, 09:43 AM   #8
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
Re: pkgtool

Quote:
Originally posted by tipaul
Some didn't look carefully at my post...

I asked for a way of doing it NOT ONE BY ONE...

In pkgtool, you MUST select them one by one also...

The best answer so far is for swaret... I'll use it for "group packaging"... That seem to be the answer...

Thanks,
You said in your initial post you didnt want to remove them one by one, not select them one by one, Big difference. But anyway.......Im going back to reading.
 
Old 08-21-2004, 09:45 AM   #9
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
You could in a similar manner just upgrade all the kde packages. Simply have them in one directory and do

Code:
upgradepkg --dry-run $(ls /directory/containing/the/packages/*.tgz)
removing --dry-run to do it for real.

EDIT added .tgz to the end of the ls statement.

Last edited by Mephisto; 08-21-2004 at 09:48 AM.
 
  


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
Removing packages in distros ScooterB Linux - Software 11 10-21-2005 07:50 AM
removing a bunch of packages.... Basslord1124 Fedora 5 03-03-2005 03:16 PM
removing certain packages Smokey Red Hat 1 10-02-2004 07:55 PM
removing packages robson8112 Linux - General 3 01-21-2004 03:34 PM
removing packages..??? mhd_Ahmed Linux - Newbie 4 08-22-2003 12:46 PM

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

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