LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-29-2006, 04:16 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
Tracing Installed date of systems and packages


Hi guys,

is it possible to trace the installed date of the entire system (first install) and the installed date of packages?

thanks!
 
Old 08-29-2006, 07:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,285
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
is it possible to trace the installed date
Sure.


of the entire system (first install)
Depends on if you can find either files that haven't been modified (mtime, not ctime) since installation, an installation log, or something like "tune2fs -l /dev/hddevice | grep created".


and the installed date of packages?
That's easier if you use a distro that has an evolved package management system:
Code:
epoch2date() { EPOCH="$1"; 
/bin/date '+%Y-%m-%d %H:%M:%S %Z' --date "Jan 1, 1970 01:00:00 + $EPOCH seconds"; }
rpm -qa --queryformat="%{NAME} %{INSTALLTIME}\n" | while read pkg epoch; do
 echo "${pkg} $(epoch2date $epoch)"
done

Last edited by unSpawn; 08-29-2006 at 07:17 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
OpenBSD - no up to date mozilla packages uselpa *BSD 7 05-08-2006 03:32 AM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM
LFS 5.0 with kernel 2.6.5 gcc 3.3.2 and many other 'more up-to-date' packages ParticleHunter Linux From Scratch 2 04-09-2004 08:41 AM
Debian Packages (apt-get) not up-to-date? rmdl Debian 12 02-23-2004 08:59 AM


All times are GMT -5. The time now is 01:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration