LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-08-2022, 04:46 PM   #46
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,363

Rep: Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078

Quote:
Originally Posted by iluvatar1 View Post
Hmm yeah, I did not want to suggest what fields to use, but now that you cited the docs, maybe VARIANT or VARIANT_ID would be useful tags ...
According to the link I already posted (https://docs.slackware.com/howtos:mi...ckware_version), there is no currently a way to distinguish among current versions.
I'm not sure Pat will recompile aaa_base with each update
 
Old 01-08-2022, 05:05 PM   #47
iluvatar1
LQ Newbie
 
Registered: Apr 2014
Posts: 26

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
I'm not sure Pat will recompile aaa_base with each update
You are right, this is just a suggestion and surely is not the ideal. Maybe my case is just a singular point so not worth to be taken into account. Thanks for showing the possible implication of changing /etc/os-release with each date.
 
Old 01-09-2022, 03:46 AM   #48
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by iluvatar1 View Post
Is there a way to know the actual time stamp of the current version one is using?
If you use slackpkg, would this help?
Code:
head -1 /var/lib/slackpkg/ChangeLog.txt
 
2 members found this post helpful.
Old 01-09-2022, 04:41 AM   #49
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,973

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
Quote:
Originally Posted by Petri Kaukasoina View Post
If you use slackpkg, would this help?
Code:
head -1 /var/lib/slackpkg/ChangeLog.txt
Beat me to it.
 
1 members found this post helpful.
Old 01-09-2022, 09:19 AM   #50
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Keep in mind this ChangeLog.txt for last
# slackpkg update

And without upgrade-all after update may be wrong (more fresh).
 
Old 01-09-2022, 09:56 AM   #51
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
All --

I like the way CentOS places the anaconda-ks.cfg file in /root/
Code:
[root@nuc10i7 ~]# ls -la /root/anaconda-ks.cfg

-rw-------. 1 root root 1482 Jan  8 10:31 /root/anaconda-ks.cfg
It tells me exactly when that particular system was installed ( this one was installed yesterday morning ).

I always copy the slackware tree from the USB Device that I used for my install to my local File System after installing so that I can keep my local repo up-to-date via rsync and move as few files over the internet as possible.

This is how I create /root/slackware-initial-install.txt

Code:
[ ! -d /mnt/usb ] && mkdir /mnt/usb

mount /dev/sdx /mnt/usb                  # watch out !  change for YOUR usb drive  !

# change slackware-current-64/ChangeLog.txt to slackware-current ( ? ) for 32-bit installs 

head -1 /mnt/usb/slackware-current-64/ChangeLog.txt > /root/slackware-initial-install.txt

# this step is optional ; I use it when I forget to run head ... immediately 

touch -r /var/log/packages/aaa_base-15.0-x86_64-1 /root/slackware-initial-install.txt

umount /mnt/usb
Now I have a file like this on my system:
Code:
# ls -la ~/slackware-initial-install.txt

-rw-r--r-- 1 root root 29 Nov  7 04:35 /root/slackware-initial-install.txt

# cat ~/slackware-initial-install.txt
Sat Nov  6 20:24:12 UTC 2021
This works for me because I don't use any Package Managers other than installpkg, ugradepkg and removepkg

HTH

-- kjh
 
1 members found this post helpful.
Old 01-09-2022, 02:45 PM   #52
iluvatar1
LQ Newbie
 
Registered: Apr 2014
Posts: 26

Rep: Reputation: Disabled
Thanks for the tips. Yes, using slackpkg works until I do a simple slackpkg update and then the date in slackpkg Changelog is not related with the system installation (unless I also update the system).
I will explore the idea from @kjhambrick, maybe I can do that at the very installation or first boot in my packer setups. Thanks!
 
  


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] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
[SOLVED] How to identify current CPU in a parallel machine Feynman Linux - Newbie 6 09-03-2010 09:57 AM
Identify current mode of a file scbops Programming 2 07-03-2006 08:41 AM
Identify Slackware as Windows rkfb Slackware 17 05-02-2004 06:52 PM

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

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