LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-11-2006, 01:52 AM   #1
suguru
Member
 
Registered: Dec 2003
Location: Voluntarily move into diaster relief areas.
Distribution: Upgraded from Suse 10 to Ubuntu.
Posts: 104

Rep: Reputation: 15
Howto Get product & os information from rpm?


A student put in the disks from another Suse product and asked
for a Yast update. Now I have to straighten out with
updates a messed up Suse. The biggest problem is that
the updates already downloaded cost $40 USD for Internet
cafe fees and that is a very large amount for a third world
non-profit school. I want to find out for each patch or rpm
on the corrupted system for what product it is intended and
from which repository it came.

What I thought I would do was use the cli PIN or RPM to look at
what os/product each rpm was intended for. Rpm has a lot of
options and after trying several, I could not find one suitable.
Even -qvv does not give anything about the product or os nor the
repository from whence it came. I wonder if this important
information is available after doing the following.

ls -ls /var/lib/rpm
total 51160
1 drwxr-xr-x 3 root root 536 Sep 9 22:10 .
1 drwxr-xr-x 46 root root 1216 Jan 2 21:15 ..
6386 -rw-r--r-- 1 root root 10174464 Jan 9 17:03 Basenames
12 -rw-r--r-- 1 root root 12288 Jan 9 17:03 Conflictname
1425 -rw-r--r-- 1 root root 1458176 Jan 9 17:03 Dirnames
7494 -rw-r--r-- 1 root root 10366976 Jan 9 17:03 Filemd5s
24 -rw-r--r-- 1 root root 24576 Jan 9 17:03 Group
44 -rw-r--r-- 1 root root 45056 Jan 9 17:03 Installtid
44 -rw-r--r-- 1 root root 49152 Jan 9 17:03 Name
34490 -rw-r--r-- 1 root root 35287040 Jan 9 17:03 Packages
449 -rw-r--r-- 1 root root 638976 Jan 9 17:03 Providename
116 -rw-r--r-- 1 root root 118784 Jan 9 17:03 Provideversion
12 -rw-r--r-- 1 root root 12288 Jan 9 17:03 Pubkeys
316 -rw-r--r-- 1 root root 421888 Jan 9 17:03 Requirename
196 -rw-r--r-- 1 root root 200704 Jan 9 17:03 Requireversion
84 -rw-r--r-- 1 root root 94208 Jan 9 17:03 Sha1header
56 -rw-r--r-- 1 root root 81920 Jan 9 17:03 Sigmd5
12 -rw-r--r-- 1 root root 12288 Jan 9 17:03 Triggername
0 drwxr-xr-x 2 root root 208 Jan 6 15:32 alternatives
 
Old 01-11-2006, 04:04 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
You can find information about each installed patch in
/var/lib/YaST2/you/installed

Installed packages can be listed with 'rpm -qi <package>'. This will output all available information about the respective package. 'rpm -qai' will output this information for all installed packages, but you'll get a little too much info from this. If you find a way to filter this output for the tags "Name" and "Distribution", you can find what you are looking for. Maybe you know how you can 'grep' two lines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Agile Expands Compliance, Product Portfolio, Product Collaboration and Quality Management Capabilities in Latest Version of Leading PLM Solution LXer Syndicated Linux News 0 12-13-2005 08:31 AM
HCL: review for product with 0 entries / generic or detailed product names? stonux LQ Suggestions & Feedback 1 06-03-2005 12:51 AM
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 05:24 PM
Basic information needed! PLUGS & WIRES safe & clean- How to? yuppi21 Linux - Hardware 3 11-18-2003 11:01 AM
howto setup Cable modem&router&red hat on machine with ethernet integrated on mobo&XP takanana Linux - Networking 14 10-23-2003 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration