Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-13-2014, 07:41 PM
|
#1
|
LQ Newbie
Registered: Jan 2014
Posts: 14
Rep:
|
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?
|
|
|
01-13-2014, 07:45 PM
|
#2
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Most of the xfce packages begin with xfce4-, so I think you could use that as a starting point.
|
|
|
01-13-2014, 07:58 PM
|
#3
|
Member
Registered: Nov 2003
Posts: 528
Rep: 
|
Don't do this, it's dangerous:
Code:
# cd /var/log/packages
# removepkg $(grep -l '^PACKAGE LOCATION: .*/xfce/' *)
|
|
|
01-13-2014, 07:59 PM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
Quote:
Originally Posted by lionoceros
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).
|
|
|
01-13-2014, 09:50 PM
|
#5
|
Member
Registered: Oct 2011
Distribution: Slackware64
Posts: 364
Rep:
|
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]
}
|
|
|
01-13-2014, 11:07 PM
|
#6
|
Member
Registered: Mar 2006
Location: Monterrey, México
Distribution: Slackware64 Current
Posts: 33
Rep:
|
# slackpkg remove xfce
|
|
1 members found this post helpful.
|
01-14-2014, 04:35 PM
|
#7
|
LQ Newbie
Registered: Jan 2014
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by hernanmedellin
# slackpkg remove xfce
|
That worked perfectly. Thanks!
And thanks for your help, everyone!
|
|
|
All times are GMT -5. The time now is 01:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|