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 01-16-2020, 08:27 AM   #16
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019

Quote:
Originally Posted by Richard Cranium View Post
slackroll will tell you which packages that aren't available any more with the list-transient command.
My update scripts work in a similar way: driven by the availability, or lack thereof of individual package files, so removal of discontinued packages is handled as part of the normal update process.


Quote:
Originally Posted by NonNonBa View Post
But, as slackpkg, it won't say when a local package depends of a removed package, will it?
Nothing outside of a fully functional dependency based package system will handle that situation, and even then, it's only reliable so long as the packager who created it doesn't miss listing a possible dependency (some of which may very well be optional and auto included during the configure run).

Slackware's long held philosophy seems to be that doing it right takes so much effort and attention to detail that attempting to do so on a large scale is simply a fool's errand.
 
1 members found this post helpful.
Old 01-16-2020, 08:50 AM   #17
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Original Poster
Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Cool

Quote:
Originally Posted by GazL View Post
Slackware's long held philosophy seems to be that doing it right takes so much effort and attention to detail that attempting to do so on a large scale is simply a fool's errand.
Agreed. Slackware's lack of dependency resolution is a source of strength, not a deficit. I admire and appreciate our package management system.
 
1 members found this post helpful.
Old 01-16-2020, 03:29 PM   #18
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by hitest View Post
I admire and appreciate our package management system.
Well, in all honesty, I could pick some faults with it, but lack of dependency management isn't one of them.
 
2 members found this post helpful.
Old 01-16-2020, 07:34 PM   #19
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by GazL View Post
Well, in all honesty, I could pick some faults with it, but lack of dependency management isn't one of them.
Just curious, what would you like to see?
 
Old 01-16-2020, 08:41 PM   #20
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
I normally parse the changelog with the following:

Code:
grep -a 'Removed.$' ChangeLog.txt | sed -e 's#^.*/##g' -e 's#:.*Removed.$##g' | \
tr '\n' ' ' > removeme
And then run removepkg with the generated list over my installed packages. I am sure that it could be done better but this has worked solidly for me for some years now...

Last edited by andrew.46; 01-17-2020 at 04:41 PM.
 
Old 01-17-2020, 04:35 AM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by drgibbon View Post
Just curious, what would you like to see?
Well, pre and post install scripts would be nice. and a post removal script could help with clean-up.

'.new' as a suffix is a bit generic and can lead to false positives when dealing with .new files. Case in point: /usr/doc/groff-1.22.4/examples/mom/elvis_syntax.new. Better to use something like .slacknew

Using hypens in package names and as a delimiter makes it difficult when it comes to parsing package file names as you have to start at the end and parse in reverse order. CRUX fixes this by using package#version.pkg.tar.gz. They also include pkg in the filename. which I like as it helps differentiate the file as a package rather than any other gzipped tarball. I like what they do here.

I've never liked how symlinks get appended to the doinst.sh, and I really don't like how the symlink lines added to doinst.sh are parsed during removal. If symlinks have to be separated from the tarball then IMO it would be far more reliable to put them in their own file (install/symlinks) or some such.

I also dislike how some stuff has to be duplicated across multiple packages. The glibc stuff being a good example of that, and the whole checking for duplicated files at removal stuff is clunky and slow, but I accept that this is inherent to the design and we're stuck with it.


Having said all that, our package system does and has worked for a long time, so please don't see this as an attack on it, nor is it a request for any specific changes. That's not my intent here. The package system was designed 25 years ago and IMO it simply shows a little.

Last edited by GazL; 01-17-2020 at 04:40 AM.
 
2 members found this post helpful.
Old 01-18-2020, 08:53 AM   #22
NonNonBa
Member
 
Registered: Aug 2010
Distribution: Slackware
Posts: 192

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL
Slackware's long held philosophy seems to be that doing it right takes so much effort and attention to detail that attempting to do so on a large scale is simply a fool's errand.
I don't use anything but Slackware, but I'd be surprised Arch, Fedora, etc. couldn't provide something functional.

Still, indeed Slackware (doesn't) deal with it elegantly. Though it relies on the release cycle, IMO. You don't really care to have dead weight if you know every 18-24 months you'll have the occasion to all cleanup. That's also why I worry a bit if the two last devel cycle durations are meant to become a new standard.

Quote:
Originally Posted by GazL View Post
I've never liked how symlinks get appended to the doinst.sh, and I really don't like how the symlink lines added to doinst.sh are parsed during removal. If symlinks have to be separated from the tarball then IMO it would be far more reliable to put them in their own file (install/symlinks) or some such.
The symlinks have to be separated because they must be able to clobber anything where they are set, even a full directory. I've once suggested to Pat to use this kind of syntax:

Code:
rm -rf place; ln -sf destination place #SYMINSTALL
Primarily in order to save the pushd/popd stuff which ties the pkgtools to bash (no more subshell here), but also to help parsing. Sadly the transition between the two patterns would be a bit... ugly.

Personally, I still dislike the second installpkg in upgradepkg. On a bit old machines upgrading packages like kernel-modules seems to take ages.

Quote:
Originally Posted by GazL View Post
Having said all that, our package system does and has worked for a long time, so please don't see this as an attack on it, nor is it a request for any specific changes. That's not my intent here. The package system was designed 25 years ago and IMO it simply shows a little.
Yes, this is indubitably the major point. You can dislike all you want about it but, damn, it just works!
 
Old 01-18-2020, 11:43 AM   #23
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Original Poster
Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by NonNonBa View Post
You can dislike all you want about it but, damn, it just works!
Yes. There are always things that suck about an OS. Slackware sucks less than other operating systems.
Grateful to be a Slacker.
 
1 members found this post helpful.
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Check for updates by Changelog.txt digest? drgibbon Slackware 13 06-09-2018 06:22 AM
LXer: How to check the changelog of a package on Linux LXer Syndicated Linux News 0 02-27-2016 11:09 PM
[SOLVED] ? about "marking for removal" or "marking for complete removal" in synaptic pkg mgr Gregg Bell Linux - Newbie 5 03-06-2014 07:27 AM
Synaptic: "removal" vs. "complete removal" newbiesforever Linux - Software 2 08-24-2008 08:31 PM

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

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