LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-13-2014, 08:28 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
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?
 
Old 05-13-2014, 08:39 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
My output ls:

Code:
drwxr-xr-x 22 root root 4096 May 10 10:32 //
So the format in your case will probably be
Code:
YYYY:MM:DD
Edit: Sorry, completely misread your question.

Last edited by sycamorex; 05-13-2014 at 08:40 PM.
 
Old 05-13-2014, 08:59 PM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
It probably means that your initrd created the root directory that day. So it would be your last boot date/time.
 
Old 05-13-2014, 09:08 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
It's strange, because I've booted many times since that day.
 
Old 05-13-2014, 09:14 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,875

Rep: Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379Reputation: 9379
Quote:
Originally Posted by stf92 View Post
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.
Old 05-13-2014, 09:15 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
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.
 
Old 05-13-2014, 09:16 PM   #7
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Typically, yes, unless major modification to the fileseytem were done since that date.
 
Old 05-13-2014, 09:18 PM   #8
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Originally Posted by volkerdi View Post
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
 
Old 05-13-2014, 09:43 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by volkerdi View Post
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.
 
Old 05-14-2014, 02:58 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Quote:
Originally Posted by DaOne View Post
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.
Old 05-14-2014, 04:23 AM   #11
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249

Rep: Reputation: Disabled
Code:
tune2fs -l /dev/sdX{1-9}
time of file system creation
 
1 members found this post helpful.
Old 05-14-2014, 05:01 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Quote:
Originally Posted by tuxbg View Post
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.
Old 05-14-2014, 07:17 AM   #13
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
... and for the oldest install date for upgraded Slackware:
Code:
ls -lt /var/log/removed_packages/ | tail -n1
 
Old 05-14-2014, 01:10 PM   #14
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Originally Posted by Alien Bob View Post
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.
 
  


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
Installation Date bhoop Linux - Hardware 2 05-12-2010 06:44 AM
Installation date of the server sunhui Linux - Software 1 10-18-2006 03:16 AM
How to up(2)date an installation server? polik Linux - Enterprise 1 06-21-2005 01:50 PM
find installation date Pete Dogg Linux - Software 4 09-27-2003 12:51 PM
installation date Buttercups Red Hat 1 09-10-2003 06:59 AM

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

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