PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 13, 2012, 12:21:11 PM


Login with username, password and session length


Pages: 1 [2]   Go Down
  Print  
Author Topic: Is there a log of what Synaptic has installed?  (Read 21699 times)
Ranger
Guest
« Reply #15 on: June 20, 2007, 04: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.
Logged
sps
Sr. Member
****
Offline Offline

Posts: 343

Sergio


« Reply #16 on: June 20, 2007, 06: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
Logged

Mobo=ASUS-P5N-E+IntelC2D-6750, Ram=4Gig, VGA=XFX-GeForce8600-GT
Notebook=HP-TX2120US (running vista until PCLOS2008)
n1ptt
Guest
« Reply #17 on: June 20, 2007, 06: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
Logged
sps
Sr. Member
****
Offline Offline

Posts: 343

Sergio


« Reply #18 on: June 21, 2007, 06: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
Logged

Mobo=ASUS-P5N-E+IntelC2D-6750, Ram=4Gig, VGA=XFX-GeForce8600-GT
Notebook=HP-TX2120US (running vista until PCLOS2008)
poppers1957
Guest
« Reply #19 on: August 06, 2007, 12:42:31 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?
Logged
Cobbydaler
Hero Member
*****
Offline Offline

Posts: 1832

Location: UK


« Reply #20 on: August 06, 2007, 01: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.
Logged

We suffer love together as one, an empty heart with nowhere to turn. We find ourselves looking back another way, a brand new day...
Xenaflux
Hero Member
*****
Offline Offline

Posts: 3124

Thailand


« Reply #21 on: August 06, 2007, 01: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.
Logged

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
« Reply #22 on: August 30, 2007, 11: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.
Logged
Hooke
Guest
« Reply #23 on: September 03, 2007, 05: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 Wink



Logged
Hooke
Guest
« Reply #24 on: September 03, 2007, 06: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:
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:
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).

 Wink
Logged
jabbertux
Guest
« Reply #25 on: September 24, 2007, 07: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.
Logged
frazelle09
Hero Member
*****
Offline Offline

Posts: 1203


Open my what?


WWW
« Reply #26 on: February 03, 2008, 12:26:11 AM »

[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!  Smiley
Logged

"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."

Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM