LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 05-17-2013, 01:09 AM   #1
textillis
Member
 
Registered: May 2013
Location: Northern Rivers, NSW, Australia
Distribution: Slackware64-current, Mint Nadya
Posts: 299

Rep: Reputation: 2
1. Expunge new install of all kde; & 2.exclude kde from further updates & upgrades


Hi folks,

Linux noob here.

My subject line asks my question.

I would greatly appreciate some code to execute these 2 operations.

Thx,
Tex

A quotation that is exercising my imagination today, from Sam Johnson, 18thCentury lexicographer, latinist, conversationalist and great contrarian:
"There are two types of knowledge in the world: that which one finds in books and that concerning where those books can be found"
I thought: how apt this is when applied -mutatis mutandis- to the process of acquiring a rough-n-ready took-kit for linux, and for slackware in particular.

Last edited by textillis; 05-17-2013 at 01:11 AM. Reason: punctuational neurosis
 
Old 05-17-2013, 05:12 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
1.
Code:
slackpkg remove kde kdei
2. Not necessary if no KDE packages are installed.
 
1 members found this post helpful.
Old 05-17-2013, 05:18 AM   #3
textillis
Member
 
Registered: May 2013
Location: Northern Rivers, NSW, Australia
Distribution: Slackware64-current, Mint Nadya
Posts: 299

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by TobiSGD View Post
1.
Code:
slackpkg remove kde kdei
2. Not necessary if no KDE packages are installed.

Very much appreciated.
 
Old 05-17-2013, 05:32 AM   #4
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
1) Go to the "slackware64/kde" directory in your Slackware DVD (or other installation media):

Code:
# cd /path/to/SlackDVD/slackware64/kde
# for i in $(cat tagfile); do removepkg ${i%%:*}; done
The tagfile contains a list of all KDE packages that setup installs (all of them, not only the ones with "kde" in their name). The for line invokes removepkg with each package name.

2) Nothing to do. Since KDE is no longer in the system, slackpkg won't upgrade it (when using slackpkg upgrade-all).

But if you upgrade the system to a new Slackware stable or -current, the slackpkg install-new command will put the KDE packages back. In that case you need to blacklist the KDE packages:

Code:
# cd /path/to/SlackDVD/slackware64/kde
# for i in $(cat tagfile); do echo ${i%%:*} >> /etc/slackpkg/blacklist; done
The command above adds all KDE package names to the blacklist file. But this blacklist would work only if there are no new or renamed KDE packages in the new Slackware stable or -current, otherwise some unwanted packages might get installed in the upgrade process. In this case, it would be necessary to manually add the package names to /etc/slackpkg/blacklist.

If you want KDE back, either use

Code:
# slackpkg install-new
to install it from a mirror, or

Code:
# cd /path/to/SlackDVD/slackware64/kde
# installpkg *txz
to install KDE from your Slackware DVD.

Suggestion: Read the manpages for slackpkg, installpkg, removepkg and upgradepkg so you get acquainted with these tools.

Important: Be extra careful whenever you're removing stuff. Make backups of your data. RTFM.

Hope that's clear. Ask, if in doubt.
 
3 members found this post helpful.
Old 05-17-2013, 10:05 AM   #5
textillis
Member
 
Registered: May 2013
Location: Northern Rivers, NSW, Australia
Distribution: Slackware64-current, Mint Nadya
Posts: 299

Original Poster
Rep: Reputation: 2
Mighty helpful. Thanks Diantre.
I'll file the code away and follow your advice by doing
the reading before taking the action!
 
Old 05-19-2013, 08:56 PM   #6
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Rep: Reputation: 20
Quote:
Originally Posted by Diantre View Post
1) Go to the "slackware64/kde" directory in your Slackware DVD (or other installation media):

Code:
# cd /path/to/SlackDVD/slackware64/kde
# for i in $(cat tagfile); do removepkg ${i%%:*}; done
The tagfile contains a list of all KDE packages that setup installs (all of them, not only the ones with "kde" in their name). The for line invokes removepkg with each package name.

2) Nothing to do. Since KDE is no longer in the system, slackpkg won't upgrade it (when using slackpkg upgrade-all).

But if you upgrade the system to a new Slackware stable or -current, the slackpkg install-new command will put the KDE packages back. In that case you need to blacklist the KDE packages:

Code:
# cd /path/to/SlackDVD/slackware64/kde
# for i in $(cat tagfile); do echo ${i%%:*} >> /etc/slackpkg/blacklist; done
The command above adds all KDE package names to the blacklist file. But this blacklist would work only if there are no new or renamed KDE packages in the new Slackware stable or -current, otherwise some unwanted packages might get installed in the upgrade process. In this case, it would be necessary to manually add the package names to /etc/slackpkg/blacklist.

If you want KDE back, either use

Code:
# slackpkg install-new
to install it from a mirror, or

Code:
# cd /path/to/SlackDVD/slackware64/kde
# installpkg *txz
to install KDE from your Slackware DVD.

Suggestion: Read the manpages for slackpkg, installpkg, removepkg and upgradepkg so you get acquainted with these tools.

Important: Be extra careful whenever you're removing stuff. Make backups of your data. RTFM.

Hope that's clear. Ask, if in doubt.
I really appreciate posts like this. Thanks for your time here.
 
1 members found this post helpful.
Old 05-21-2013, 03:07 PM   #7
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 14.2
Posts: 54

Rep: Reputation: 15
Quote:
Originally Posted by Diantre View Post
1) Go to the "slackware64/kde" directory in your Slackware DVD (or other installation media):
Code:
# cd /path/to/SlackDVD/slackware64/kde
# for i in $(cat tagfile); do removepkg ${i%%:*}; done
This was an excellent post. I have one question: in the 'for' line above, what does the ${i%%:*} do? I am not familiar with that construction, particularly what the %%:* does to modify ${i}.
 
Old 05-21-2013, 03:36 PM   #8
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by quiescere View Post
I have one question: in the 'for' line above, what does the ${i%%:*} do? I am not familiar with that construction, particularly what the %%:* does to modify ${i}.
The ${string%%substring} is a bash construct that removes the longest match of substring from the back of string.

In the tagfile, the packages have a keyword that indicates if the package is installed automatically or not, or if the user is prompted to install it. For example, from the KDE tagfile:

Code:
amarok:OPT
ark:REC
kdelibs:ADD
The ${i%%:*} removes characters from the back of $i, from ':' to the end of the string, indicated by '*'. So we get the packages names without the ':*' at the end:

Code:
amarok
ark
kdelibs
You can read more about the tagfiles in the SlackBook, and the Advanced Bash Scripting book has details about string manipulation.
 
1 members found this post helpful.
Old 05-22-2013, 04:23 PM   #9
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 14.2
Posts: 54

Rep: Reputation: 15
Thanks very much: that's good to know.
 
  


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
uninstall kde 4 & gnome 2.20 and install kde 3.5 or gnome 1.x on suse 10.3 laucian Linux - Newbie 2 04-07-2008 01:01 PM
Xscreensaver & session-lock confusion, using XDM, KDE & Slackware. GrapefruiTgirl Linux - Desktop 1 05-15-2007 11:22 AM
synaptic 0.57.5 breaks; latest unstable, watch updates & upgrades Nix_Hard MEPIS 1 10-06-2005 07:55 PM
Creating & Exiting Tray Icon in KDE & GNOME pihu Linux - General 0 09-07-2005 02:02 AM
How to install QT&GTK* without GNOME & KDE? VertX Debian 2 02-15-2005 01:27 PM

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

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