Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Request

I would like to know where I can find the logs for the following package managers.

Package managers

  • Synaptic Package Manager
  • Ubuntu Software Center

Terminal logs for apt-get

and The logs when using the terminal with apt-get

Appreciation

Any help would be appreciated. Thanks!

share|improve this question
    
none of the listed logs in the answers are very verbose. I think it would be nice to see something like:" downloading index from blah blah downloading deb blah installing package foo version 1.2.3 from file foo.blah.deb" instead of just lists of packages that were installed. –  Brian Minton Jul 9 at 19:47

3 Answers 3

up vote 4 down vote accepted

Apt-get logs can be found in /var/log/apt/term.log

gedit /var/log/apt/term.log
share|improve this answer
    
Could I use cat to view them? –  sdale1930 Feb 25 at 1:11
1  
yes you can man –  nux Feb 25 at 1:13
    
Thanks for the help nux. –  sdale1930 Feb 25 at 1:14
1  
Of course, cat /var/log/apt/term.log will display the file contents just fine. You may also be interested in tail -f /var/log/apt/term.log. This only displays the last few lines (tail) of the file, and, more interestingly, will continually print whatever gets appended to that file. This is quite interesting if you want to "observe" the log. –  Malte Skoruppa Feb 25 at 1:14
    
your welcome my friend –  nux Feb 25 at 1:15

check the file

/var/log/dpkg.log

which records all the apt activities, such as installs or upgrades, for the various package managers

also you can view synaptic logs through its gui

share|improve this answer

I like var/log/apt/history.log. It is very concise.

Also note that older logs are archived with logrotate once a month. To combine the current history.log and all the older compressed history.log files you can use cat and zcat like this:

cd /var/log/apt && cat history.log > ~/Desktop/allhistory.log && zcat history.log*gz >> ~/Desktop/allhistory.log && cd

Then you can, for example, use grep to find what you need:

$ grep package_name ~/Desktop/allhistory.log where you will put what you want in place of package_name.

$ grep google ~/Desktop/allhistory.log
Upgrade: google-chrome-stable:amd64 (32.0.1700.102-1, 33.0.1750.117-1)
Upgrade: google-chrome-stable:amd64 (31.0.1650.48-1, 32.0.1700.77-1)
Upgrade: google-chrome-stable:amd64 (32.0.1700.77-1, 32.0.1700.102-1)
Upgrade: google-chrome-stable:amd64 (30.0.1599.101-1, 31.0.1650.48-1)
$ 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.