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

Offline kaptain_zero

  • Full Member
  • ***
  • Posts: 139
Is there a log of what Synaptic has installed?
« on: May 23, 2007, 01:20:32 AM »
I know how to check using synaptic to see what programs are installed, but I was unable to find a way to actually print them out in a hardcopy. I've done quite a bit of tweaking to my TR3 and TR4 versions but I want to re-install now that Final has been released. I would like to have a paper copy of the programs I had installed before so I could get them re-installed without having to search all over to figure out what they were called.....  I tried to copy and paste from synaptic but that didn't work, nor was there a print option in synaptic. Knowing linux, there must be a list somewhere in txt format that I could print out before re-installing my OS, I just can't seem to find it.....<sigh>.

Regards

Christian
Asus M4A78-EM
Phenom II X4 940 Black Edition Quad Core Processor AM2+  OC'd to 3.3GHZ
GeForce 8800 GT
Samsung SCX-4623F all in one monochrome laser

Offline jaydot

  • Administrator
  • Super Villain
  • *****
  • Posts: 15564
  • there is no limitation on imagination
Re: Is there a log of what Synaptic has installed?
« Reply #1 on: May 23, 2007, 01:25:11 AM »
probably somewhere in /var.  lemme have a look.

edit:

can't find anything useful, but there was a thread about this, along with a script to get the list and save to text file for printing.

hang around.  one of the brighter members will be along soon.
« Last Edit: May 23, 2007, 01:28:22 AM by jaydot »
PCLinuxOS  Get it?  Got it?  Good!!   8)

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7

indianseason

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #2 on: May 23, 2007, 03:27:25 AM »
Are you comfortable using a command line? If so the method is very simple. Use the following command:

Code: [Select]
rpm -qa > installed_list.txt
The command definitely works when logged in as root. I am not so sure if it works for a normal user.

You can use the "rpm" command to get a lot of information about installed programs, etc. I use it all the time to figure out if I have an app installed (you can pipe the output of rpm -qa through grep for example).

pongster

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #3 on: May 23, 2007, 04:00:09 AM »
cool! ive been looking for a way to do this! thanks! ;D

PeterTheBike

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #4 on: May 23, 2007, 09:56:04 AM »
Does File/Save Markings do what you want? You need to check Save full state.

Peter

Cobbydaler

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #5 on: May 23, 2007, 10:09:46 AM »
Are you comfortable using a command line? If so the method is very simple. Use the following command:

Code: [Select]
rpm -qa > installed_list.txt
The command definitely works when logged in as root. I am not so sure if it works for a normal user.


Works for an ordinary user as well...

Couldn't you then do the same with a fresh install & use sdiff to list the differences between the two files, i.e. what you needed to reinstall?

Offline jaydot

  • Administrator
  • Super Villain
  • *****
  • Posts: 15564
  • there is no limitation on imagination
Re: Is there a log of what Synaptic has installed?
« Reply #6 on: May 23, 2007, 10:22:58 AM »
thanks very much cobbydaler.  i find this useful too.
PCLinuxOS  Get it?  Got it?  Good!!   8)

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7

Offline kaptain_zero

  • Full Member
  • ***
  • Posts: 139
Re: Is there a log of what Synaptic has installed?
« Reply #7 on: May 23, 2007, 11:49:44 AM »
Thanks! That's exactly what I wanted. I should have known there would be a switch, I just never thought to go looking at the command line... I guess I've gone soft since the last few OS's have become so gui oriented. I love the power of the command line but I dislike the excessive number of switches available with each command in linux, sometimes it seems to take forever to ferret out the correct magical incantation one is looking for!

Regards

Christian
Asus M4A78-EM
Phenom II X4 940 Black Edition Quad Core Processor AM2+  OC'd to 3.3GHZ
GeForce 8800 GT
Samsung SCX-4623F all in one monochrome laser

Offline bluezdog

  • Jr. Member
  • **
  • Posts: 18
Re: Is there a log of what Synaptic has installed?
« Reply #8 on: May 24, 2007, 01:25:12 PM »
Nice just what I wanted my self, sure can use this text file.

Bluezdog

Offline larry1160

  • Full Member
  • ***
  • Posts: 101
Re: Is there a log of what Synaptic has installed?
« Reply #9 on: May 27, 2007, 04:37:00 PM »
a little more detail, try this

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

pongster

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #10 on: May 27, 2007, 06:52:28 PM »
a little more detail, try this

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

cool, what does it give in details and how do we make it output to a txt file for backup? :)

Offline barryc

  • Sr. Member
  • ****
  • Posts: 321
Re: Is there a log of what Synaptic has installed?
« Reply #11 on: May 29, 2007, 01:11:20 PM »
This will save it 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 >
« Last Edit: October 17, 2007, 12:50:10 PM by barryc »
You gotta have balls to play golf.

ikerekes

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #12 on: May 29, 2007, 01:25:07 PM »
a little known modifier of the rpm -qa command is the --last.
Try
Code: [Select]
rpm -qa --last

pongster

  • Guest
Re: Is there a log of what Synaptic has installed?
« Reply #13 on: May 29, 2007, 07:35:35 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 >


Excellent! ;D

Offline jiml

  • Full Member
  • ***
  • Posts: 52
Re: Is there a log of what Synaptic has installed?
« Reply #14 on: June 15, 2007, 09:52:40 AM »
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!
PCLinuxOS 2007 / HP Pavillion dv6157eu