LinuxQuestions.org
Review your favorite Linux distribution.
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 06-22-2018, 06:20 AM   #1
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Curious: pkgtools Directories and SymlLnks with pkgtools-15.0-noarch-20.txz on Thu Jun 21 22:58:42 UTC 2018


All --

I've been busy at work and maybe I missed a relevant thread ( and I searched for the wrong string(s) in LQ )

Anyhow ... this is an up-to-date Slackware64 14.2+current System.

I backed up /var/log/{packages,removed_packages,scripts,removed_scripts,setup} and installed pkgtools-15.0-noarch-20.txz from the Thu Jun 21 22:58:42 UTC 2018 update.

This is what I see now in /var/log/ and /var/lib/pkgtools/

Code:
# cd /var/lib/pkgtools
# /bin/ls -lad `pwd`/*

drwxr-xr-x 2 root root 69632 Jun 22 05:31 /var/lib/pkgtools/packages
lrwxrwxrwx 1 root root    35 Jun 22 05:28 /var/lib/pkgtools/removed_packages -> ../../log/pkgtools/removed_packages
lrwxrwxrwx 1 root root    34 Jun 22 05:28 /var/lib/pkgtools/removed_scripts -> ../../log/pkgtools/removed_scripts
drwxr-xr-x 2 root root 49152 Jun 22 05:31 /var/lib/pkgtools/scripts
drwxr-xr-x 3 root root  4096 Jun 19 16:13 /var/lib/pkgtools/setup

# cd /var/log
# /bin/ls -lad `pwd`/* |grep '^l'
lrwxrwxrwx 1 root root       24 Jun 22 05:28 /var/log/packages -> ../lib/pkgtools/packages
lrwxrwxrwx 1 root root       25 Jun 22 05:28 /var/log/removed_packages -> pkgtools/removed_packages
lrwxrwxrwx 1 root root       24 Jun 22 05:28 /var/log/removed_scripts -> pkgtools/removed_scripts
lrwxrwxrwx 1 root root       23 Jun 22 05:28 /var/log/scripts -> ../lib/pkgtools/scripts
lrwxrwxrwx 1 root root       21 Jun 22 05:28 /var/log/setup -> ../lib/pkgtools/setup
Finally my Q ...

Why were the physical directories /var/log/packages/ -and- /var/log/scripts/ -and- /var/log/setup/ moved to /var/lib/pkgtools/ ?

but OTOH ...

Why were /var/log/removed_packages/ -and- /var/log/removed+scripts/ moved to a new /var/log/pkgtools/ directory with secondary SymLinks set up in /var/lib/pkgtools/ for removed_packages -and- removed_scripts ?

IOW ..

Why were removed_packages -and- removed_scripts not moved to /var/lib/pkgtools/ with a single SymLink for them like packages/ -and- scripts/ -and- setup/ ?

Whew !

Thanks !

-- kjh
 
Old 06-22-2018, 06:27 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,063

Rep: Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825Reputation: 6825
Just read the relevant ChangeLog.txt entry: https://git.slackware.nl/current/com...a6ef01a78d092f
 
Old 06-22-2018, 06:59 AM   #3
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Original Poster
Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Thanks Alien Bob.

I did read that changelog and I do see now where it says that removed_packages/ and removed_scripts/ would be moved into /var/log/pkgtools/

I did miss this sentence in the previous release where pkgtools was released in testing:
Code:
<<snip>>
The removed_packages and removed_scripts directories are really just logs 
that aren't actually used for anything - those will remain under /var/log, 
but moved into /var/log/pkgtools. Everything under /var/log will be 
considered potentially non-permanent by the pkgtools - if any directories 
or symlinks disappear from there, the pkgtools will automatically recreate 
them as needed.
<<snip>>
But my question was not clear -- I was wondering about the double SymLinks for removed_packages/ and removed_scripts/

No worries ... Thanks again !

-- kjh
 
Old 06-22-2018, 12:03 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,898

Rep: Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130Reputation: 6130
The links in /var/log are to make sure that all the old locations continue to exist, and the links in /var/lib/pkgtools/ for removed_packages and removed_scripts are just to have everything easy to find.
 
5 members found this post helpful.
Old 06-23-2018, 01:16 AM   #5
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Original Poster
Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Thanks volkerdi.

That makes perfect sense.

-- kjh( If only I had asked my Q as concisely as your A )

--
 
  


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
[SOLVED] Wed Jun 13 05:43:00 UTC 2018 and Newer Current bare metal install? AlleyTrotter Slackware 28 06-24-2018 02:36 PM
Current's pkgtools directories move burdi01 Slackware 20 06-22-2018 08:50 AM
[SOLVED] 14.2RC2 Update( Thu Jun 2 19:08:13 UTC 2016 ) -- Alll is Well ! kjhambrick Slackware 15 06-04-2016 06:38 AM
Dual boot OS X and Slackware64-current (Thu Jun 27 23:56:34 UTC 2013) with elilo? janucaria Slackware 2 07-03-2013 07:56 AM

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

All times are GMT -5. The time now is 09:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration