LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Removing multiple packages (https://www.linuxquestions.org/questions/slackware-14/removing-multiple-packages-220138/)

tipaul 08-20-2004 09:08 AM

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.

320mb 08-20-2004 09:10 AM

upgradepkg

this will remove and install at the same time.

Franklin 08-20-2004 03:32 PM

You could also remove a group of selected packages with pkgtool - if you weren't upgrading them and just wanted to remove them.

PDock 08-21-2004 06:17 AM

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

ppd

Smokey 08-21-2004 07:03 AM

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.

tipaul 08-21-2004 08:32 AM

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,

Mephisto 08-21-2004 09:41 AM

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.

Smokey 08-21-2004 09:43 AM

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. :study:

Mephisto 08-21-2004 09:45 AM

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.


All times are GMT -5. The time now is 04:09 AM.