LinuxQuestions.org
Help answer threads with 0 replies.
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 01-13-2014, 07:41 PM   #1
lionoceros
LQ Newbie
 
Registered: Jan 2014
Posts: 14

Rep: Reputation: 8
How can I uninstall an entire software set?


I would like to remove the XFCE set since I switched to Openbox and do not use XFCE applications. Is there an easy way to remove the entire software set without removing any other packages?
 
Old 01-13-2014, 07:45 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Most of the xfce packages begin with xfce4-, so I think you could use that as a starting point.
 
Old 01-13-2014, 07:58 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 528

Rep: Reputation: Disabled
Don't do this, it's dangerous:
Code:
# cd /var/log/packages
# removepkg $(grep -l '^PACKAGE LOCATION: .*/xfce/' *)
 
Old 01-13-2014, 07:59 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352

Rep: Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385
Quote:
Originally Posted by lionoceros View Post
I would like to remove the XFCE set since I switched to Openbox and do not use XFCE applications. Is there an easy way to remove the entire software set without removing any other packages?
Just so you know, Crunchbang's default desktop is OpenBox, and it does use Xfce4 components such as Thunar (and Xfce4-power-manager, IIRC).
 
Old 01-13-2014, 09:50 PM   #5
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Here is a script I've been working on. My original usage is only slightly different than what you were asking, but needs very similar, that a few modifications to my original script lists all packages in specified section:

Code:
#!/bin/awk -f
# pkglist.awk
#
# Usage: ./pkglist.awk -v section=SECTION_NAME /PATH/TO/PACKAGES.Txt
#
# ARGV[1] -> PACKAGES.TXT
# pkgs[i, 0] -> name
# pkgs[i, 1] -> section
# outputs each official package in section, one on each line
# with empty or missing section variable, prints all packages in PACKAGES.TXT

BEGIN {
	if (ARGC != 2)
		exit 1
	fname = ARGV[1]
       	sub(/^.*\//, "", fname)
	if (fname != "PACKAGES.TXT")
		exit 1
	i = 0
}
/PACKAGE NAME:/{ sub(/\..*/, "", $3) ; pkgs[i, 0] = $3 }
/PACKAGE LOCATION:/{ sub(/^.*\//, "", $3) ; pkgs[i, 1] = $3 ; i++ }
{ next }
END {
	for (j = 0; j < i; j++)
		if (section == "" || pkgs[j, 1] == section)
			printf "%s\n", pkgs[j, 0]
}
 
Old 01-13-2014, 11:07 PM   #6
hernanmedellin
Member
 
Registered: Mar 2006
Location: Monterrey, México
Distribution: Slackware64 Current
Posts: 33

Rep: Reputation: 14
# slackpkg remove xfce
 
1 members found this post helpful.
Old 01-14-2014, 04:35 PM   #7
lionoceros
LQ Newbie
 
Registered: Jan 2014
Posts: 14

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by hernanmedellin View Post
# slackpkg remove xfce
That worked perfectly. Thanks!

And thanks for your help, everyone!
 
  


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
How do I Uninstall one Desktop and set up another Kryshu2 Linux - Desktop 3 11-01-2006 11:33 PM
Software for creating drive/fs image of entire system? olafskaug Linux - General 1 01-12-2006 08:43 AM
How do you uninstall software which doesn't have an uninstall-file? lagu2653 Linux - Software 2 12-08-2005 12:36 PM
FTP Software.. what will transfer an entire directory? trey85stang Linux - Software 3 06-19-2005 08:33 AM

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

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

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