date REAL about when is INSTALLED (not compiled, not delivery) CentOS

General support questions
Post Reply
Windows
Posts: 59
Joined: 2021/06/16 13:20:01

date REAL about when is INSTALLED (not compiled, not delivery) CentOS

Post by Windows » 2023/08/26 20:32:17

we are in VPS + CentOS 7.9

we REINSTALL OS CentOs yesterday

when we run:

Code: Select all

ls -lctd --time-style=+"%d-%m-%Y %H:%M:%S" /etc | tail -1 | awk '{print $6, $7, $8}'
this show current time minus 2 hours.

when we run

Code: Select all

stat / | awk '/Birth: /{print $1,$2}'
this show Birth: -

. . .

we try others commands but ever result is empty or "Birth: -" or "creazy date". . .

never we obtain REAL DATE.

please remember:
we REINSTALL OS CentOs yesterday


some command for obtain REAL timestamp or date of CentOs VIRTUAL installation ?


thanks

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: date REAL about when is INSTALLED (not compiled, not delivery) CentOS

Post by Whoever » 2023/08/26 23:52:31

Look at the timestamp on /etc/hostname ?

User avatar
TrevorH
Site Admin
Posts: 33224
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: date REAL about when is INSTALLED (not compiled, not delivery) CentOS

Post by TrevorH » 2023/08/29 09:39:28

rpm -qi basesystem | grep Install
?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: date REAL about when is INSTALLED (not compiled, not delivery) CentOS

Post by tunk » 2023/08/29 12:37:23

Maybe this: rpm -qa --last

Post Reply