How can I tell what date Ubuntu was installed?

1

Answer #: 1

You can check the installer logs and dates at:

/var/log/installer

A quick way to find the date through the command line would be by running:

ls -l /var/log/installer

Answer #: 2

If you use ext2/ext3/ext4 and formatted the disk when you installed you can do this nifty trick.

sudo dumpe2fs /dev/sda1 | grep 'Filesystem created:'

You might have to change the /dev/sda1 to reflect your setup.

Relaying on the date of files, even the “creation time” (mtime) can give errors since upgrading packages might have replaced the file and made a new “creation time”.

Similar tools and info might be available on other file systems as well, but I don’t know of them.

Answer #: 3

I also don’t know of a specific command or file. I’m using some heuristics to find the installation date:

for dir in {/etc,/usr,/lib}; do sudo find $dir -type f -exec stat -c %z {} \; | \ sed -e 's,-,,g' -e 's, .*,,' | sort |...
0 0
2

I also don't know of a specific command or file. I'm using some heuristics to find the installation date:

for dir in {/etc,/usr,/lib}; do sudo find $dir -type f -exec stat -c %z {} \; | \ sed -e 's,-,,g' -e 's, .*,,' | sort | uniq -c | sort -nr -k 2 | \ grep -Ev " [0-9]?[0-9] " done

This small script looks for files in /etc and /usr and prints out the last changed date. It does some reformatting and lists the occurrences sorted by date (newest first). Usually the oldest entry is the installation date.

This assumes that after an installation are left unchanged. This is in most cases (according to my observation) true, but in special cases it can also give wrong...

0 0
3

If properly installed using the update-java-alternatives, you can find them by issuing:

# update-java-alternatives -l java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64 java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64 java-gcj-4.6 /usr/lib/jvm/java-gcj-4.6 java-gcj-4.7 /usr/lib/jvm/java-gcj-4.7 jdk1.7.0_03 7003 /usr/lib/jvm/jdk1.7.0_03

Otherwise, if only installed with the plain update-alternatives system, use:

# update-alternatives --display java

If you just drop JREs/JDKs anywhere, you will have to parse the output of something more targeted than

# ps -def | grep java

Something similar with regards to Tomcat. If you installed Tomcat using the repositories, the file /etc/default/tomcat{6,7} contains a JAVA_HOME variable that points to the JRE/JDK used by this...

0 0
4
...
0 0
5
How can one tell if openGL is installed?

location: linuxquestions.com - date: August 21, 2002
How can one tell if openGL is installed and what version is installed?

how can i tell if 32bit or 64bit RH is installed

location: linuxquestions.com - date: August 11, 2006
is there an easy way to find out if 32-bit or 64-bit RH is installed on a server?

how can I tell if I have 62 or 32 bit ubuntu installed ?

location: ubuntuforums.com - date: June 3, 2009
I have ubuntu installed from the iso I downloaded but also decided to order a free disk. Well . . .I installed the version mailed to me on a separate disk to experiment and as i was waiting for some apps to install I was looking at the disk sleeve. It does not say it is 64bit. Is there a command to find this our? lsb_release does not indicate this info.

php Curl/Iconv how can i tell if i have it installed

location: linuxquestions.com - date: May 12, 2010
Hello all as you can see...

0 0
6

Now that you know how to open a terminal you will be able to install the Ubuntu Restricted Extras package without using the Software Centre.

After you have installed Ubuntu you might decide that you want to write a letter, listen to music or play a Flash based game.

When you write the letter you will notice that none of the Windows based fonts that you are used to are available, when you try to listen to music in Rhythmbox you won't be able to play the MP3 files and when you try to play a Flash game it just won't work.

To install the Ubuntu Restricted Extras package open up a terminal window and type the following:

This guide shows how to install the Ubuntu Restricted Extras package which will enable you to do all these things and...

0 0
7

Ubuntu has a lot of GUI-based methods for installing applications, but they take some time to search and find. Since the keyboard is usually faster than the mouse, managing your software via the command-line can be a real time-saver.

APT

Linux manages software through packages, individual units of software that contain user interfaces, modules, and libraries. Most applications link several co-dependent packages together, and still others allow you to choose which packages to install and which to leave out at your own discretion. This can get confusing, so there’s a package manager at your disposal to help

Each Linux distribution has its own package management system. For our own near and dear Ubuntu, it’s the Advanced Packaging Tool. It has a family of commands that allows you to add repositories; search for, install, and remove packages; and even simulate upgrades and such. The commands are fairly easy to remember and use, so you’ll be managing your...

0 0