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.
|
|
05-13-2014, 08:28 PM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Rep:
|
Installation date?
Hi: if 'ls -ld /' outputs 2014-05-10 as the date, does it mean I did the slackware installation on 2014-05-10?
|
|
|
05-13-2014, 08:39 PM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
|
My output ls:
Code:
drwxr-xr-x 22 root root 4096 May 10 10:32 //
So the format in your case will probably be Edit: Sorry, completely misread your question.
Last edited by sycamorex; 05-13-2014 at 08:40 PM.
|
|
|
05-13-2014, 08:59 PM
|
#3
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
It probably means that your initrd created the root directory that day. So it would be your last boot date/time.
|
|
|
05-13-2014, 09:08 PM
|
#4
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
It's strange, because I've booted many times since that day.
|
|
|
05-13-2014, 09:14 PM
|
#5
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,875
|
Quote:
Originally Posted by stf92
Hi: if 'ls -ld /' outputs 2014-05-10 as the date, does it mean I did the slackware installation on 2014-05-10?
|
I think you'd be better off looking at the date of your oldest package install:
ls -lt /var/log/packages | tail -n 1
|
|
6 members found this post helpful.
|
05-13-2014, 09:15 PM
|
#6
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Yeah, my assertion was wrong.
Pat beat me with the correct answer.
But wouldn't it be the latest package install/upgrade?
Last edited by Richard Cranium; 05-13-2014 at 09:18 PM.
Reason: Saw Pat's reply. Added question later. Admitted that I was wrong too.
|
|
|
05-13-2014, 09:16 PM
|
#7
|
Member
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498
Rep:
|
Typically, yes, unless major modification to the fileseytem were done since that date.
|
|
|
05-13-2014, 09:18 PM
|
#8
|
Member
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498
Rep:
|
Quote:
Originally Posted by volkerdi
I think you'd be better off looking at the date of your oldest package install:
ls -lt /var/log/packages | tail -n 1
|
Such as this...
Now you might be able to:
#last
And look for something like:
wtmp begins Fri Jul 6 18:16:16 2012
Last edited by DaOne; 05-13-2014 at 09:24 PM.
Reason: Add
|
|
|
05-13-2014, 09:43 PM
|
#9
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Quote:
Originally Posted by volkerdi
I think you'd be better off looking at the date of your oldest package install:
ls -lt /var/log/packages | tail -n 1
|
Thank you very much.
|
|
|
05-14-2014, 02:58 AM
|
#10
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by DaOne
Such as this...
Now you might be able to:
#last
And look for something like:
wtmp begins Fri Jul 6 18:16:16 2012
|
The wtmp database can be re-initialized for whatever reason.
Code:
# last | grep begins
wtmp begins Fri Dec 27 15:51:37 2013
versus
Code:
# ls -lt /var/log/packages/ | tail -n1
-rw-r--r-- 1 root root 2507 Aug 4 2010 aaa_elflibs-13.1-x86_64-1
Eric
|
|
1 members found this post helpful.
|
05-14-2014, 04:23 AM
|
#11
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Rep:
|
Code:
tune2fs -l /dev/sdX{1-9}
time of file system creation
|
|
1 members found this post helpful.
|
05-14-2014, 05:01 AM
|
#12
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by tuxbg
Code:
tune2fs -l /dev/sdX{1-9}
time of file system creation
|
None of the hard disks in my server are the original ones when I first installed Slackware on it ;-)
Timestamps of the files that I copied from old to new disks remain the same, but the tune2fs command shows me the date when I formatted that new disk...
Eric
|
|
2 members found this post helpful.
|
05-14-2014, 07:17 AM
|
#13
|
Member
Registered: Jan 2008
Posts: 426
|
... and for the oldest install date for upgraded Slackware:
Code:
ls -lt /var/log/removed_packages/ | tail -n1
|
|
|
05-14-2014, 01:10 PM
|
#14
|
Member
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498
Rep:
|
Quote:
Originally Posted by Alien Bob
The wtmp database can be re-initialized for whatever reason.
Code:
# last | grep begins
wtmp begins Fri Dec 27 15:51:37 2013
versus
Code:
# ls -lt /var/log/packages/ | tail -n1
-rw-r--r-- 1 root root 2507 Aug 4 2010 aaa_elflibs-13.1-x86_64-1
Eric
|
Good point. ls packages would indeed be the better choice.
|
|
|
All times are GMT -5. The time now is 03:47 PM.
|
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
|
|