Author Topic: Is there a log of what Synaptic has installed?  (Read 26124 times)

Ranger

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #15 on: June 20, 2007, 03:19:04 PM »
Synaptic has a history that you can look through. It shows what you have downloaded and on which day you downloaded. It's at the top left of synaptics page under file/history.

Offline sps

  • Sr. Member
  • ****
  • Posts: 343
  • Sergio
Re: Is there a log of what Synaptic has installed?
« Reply #16 on: June 20, 2007, 05:06:20 PM »
Can someone post an output (or the .txt file) of the following command after a fresh install of PCLOS 2007, so I can compare with my actual system?

rpm -qa | sort -k1 > installed_list.txt

TIA
Mobo=ASUS-P5N-E+IntelC2D-6750, Ram=4Gig, VGA=XFX-GeForce8600-GT
Notebook=HP-TX2120US (running vista until PCLOS2008)

n1ptt

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #17 on: June 20, 2007, 05:14:30 PM »
The actual synaptic log, of everything it does is in /root/.synaptic/log . a separate date time named log file of every time it's used and what it did is there.....have fun......n1ptt

Offline sps

  • Sr. Member
  • ****
  • Posts: 343
  • Sergio
Re: Is there a log of what Synaptic has installed?
« Reply #18 on: June 21, 2007, 05:21:31 AM »
The actual synaptic log, of everything it does is in /root/.synaptic/log . a separate date time named log file of every time it's used and what it did is there.....have fun......n1ptt

Thanks, I`ll check later at home
Mobo=ASUS-P5N-E+IntelC2D-6750, Ram=4Gig, VGA=XFX-GeForce8600-GT
Notebook=HP-TX2120US (running vista until PCLOS2008)

poppers1957

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #19 on: August 05, 2007, 11:42:31 PM »
This will save ti to your /home/yourname/  directory

rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n > installedstuff.txt

You can name it whatever you want.  Make sure you leave a space before and after the >


Sorry newbie question here.  I want to try this and will but, (now the silly question) you see the command where it says
rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n > installedstuff.txt, i need to know how to make the long vertical line that I made red between {NAME}\n' |  sort.   And what is it for?

Cobbydaler

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #20 on: August 06, 2007, 12:09:55 AM »
This will save ti to your /home/yourname/  directory

rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n > installedstuff.txt

You can name it whatever you want.  Make sure you leave a space before and after the >


Sorry newbie question here.  I want to try this and will but, (now the silly question) you see the command where it says
rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n > installedstuff.txt, i need to know how to make the long vertical line that I made red between {NAME}\n' |  sort.   And what is it for?
It's a symbol to pipe the output of the command before it to the command after it.

On the UK keyboard it's found as a shifted character on the key immediately above & to the right of the left control key. On a US keyboard it's found as a shifted character on the ket immediately above the main Enter key.

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: Is there a log of what Synaptic has installed?
« Reply #21 on: August 06, 2007, 12:12:24 AM »
It's part of the command synthacs, and the < bar > is on the key just above < enter > on my 3 keyboards ( the same key where my backward slash is.
« Last Edit: December 25, 2007, 11:31:21 PM by Xenaflux »
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

oshunluvr

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #22 on: August 30, 2007, 10:07:47 AM »
/var/log/rpmpkgs

I think I spelled that right - I am at work right now...

This file shows all rpm's including any you might have installed without synaptic.

Also for detailed package info I really like "kpackage" (kdeadmin-kpackage). It shows everything installed and detailed info (way more than synaptic) and has a complete file list for each package. You can use it to uninstall or install packages too.

Hooke

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #23 on: September 03, 2007, 04:32:15 PM »
As an ajunct to this if the output is changed to;

rpm -q -a --qf '%{NAME} ' | sort -k1,1n > installedstuff.txt

the output is now in a "packagename package-name packagename" format. Can this (somehow) be piped back into the "rpm" command to do a re-install of all the packages. This would be useful to re-install previously installed packages when a fresh build needs to be done (in my case to remove XP totally and have a PURE PClinuxOS PC.

Jim!


Here's another variant, in PCLinuxOS Magazine of September 2007, page 27
http://pclosmag.com/zineshare/200709.pdf

In short:

To build the list (only package names, not versions):

rpm -qa  --queryformat  '%{name} \n' > ~/Desktop/installed.log

(Note: the single quotes were missing in the article. Typo.)

To reinstall from the list:

apt-get -y install $(cat ~/Desktop/installed.log)

Note: The "-y" makes it ask less questions. It's optional.

If you want to simulate the installation, to se how it would go:

apt-get --simulate -y install $(cat ~/Desktop/installed.log)

Hope it helps ;)




Hooke

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #24 on: September 03, 2007, 05:44:31 PM »
/var/log/rpmpkgs

I think I spelled that right - I am at work right now...

This file shows all rpm's including any you might have installed without synaptic.

Also for detailed package info I really like "kpackage" (kdeadmin-kpackage). It shows everything installed and detailed info (way more than synaptic) and has a complete file list for each package. You can use it to uninstall or install packages too.
The /root/.Synaptic/log files look something like:

Code: [Select]
Commit Log for Fri May 25 20:58:19 2007


Installed the following packages:
aspell-es (0.50.2-8pclos2007)
kde-i18n-es (3.5.6-2pclos2007)
locales-es (2.4-5pclos2007)

If you want to get rid of everything inside the parens (so that it's easier to reinstall from that file):
Open the file with kwrite, save it with another name, then do: Edit->Replace. Mark the option "regular expressions" and click on "edit". The regex editor appears. You should use the regular expression "\(.*\)" (without quotes). Accept. In the "Replace with" leave it blank. The result is like this:
Code: [Select]
Commit Log for Fri May 25 20:58:19 2007


Installed the following packages:
aspell-es
kde-i18n-es
locales-es

The same goes for removing everything except the package name from /var/log/rpmpkgs , just that you have to use the regular expression "\-[0123456789].*" (w/o quotes).

 ;)

jabbertux

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #25 on: September 24, 2007, 06:20:05 AM »
If the history you want is still showing in Synaptic -> File -> History you can use File Manager - Super User Mode to access the logs by date and time in /root/.synaptic/log. You can view and/or print them individually (much easier to deal with that way). You can regulate how long the logs are saved in Settings -> Preferences -> Files -> History files.

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Is there a log of what Synaptic has installed?
« Reply #26 on: February 02, 2008, 10:26:11 PM »
[Synaptic has a history that you can look through. It shows what you have downloaded and on which day you downloaded. It's at the top left of synaptics page under file/history.]

You might know, Synaptic already has it.  Wow, this OS is really awesome.

Have a great evening!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."