LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2002, 04:51 PM   #1
chamkila
Member
 
Registered: Nov 2001
Distribution: Redhat 7.3 Slackware 8.1
Posts: 87

Rep: Reputation: 15
Redhat 8.0 and gnorpm


I just upgraded my RH 7.3 to 8.0. I needed to installing a rpm. But I could not find gnorpm. I checked the 3 RH cds and was unable to find any thing.

I was able to find redhat-config-packages, which is rubbish. It does not allow you to do alot, you can't search for rpm files on your hard disk.

So the question can I installing gnorpm on RH 8.0 or is there a command line script (I know you can run rpm -i on command line).

Thanks alot


Chamkila
 
Old 10-19-2002, 05:12 PM   #2
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
here is my rpm cheat sheet

Code:
RPM (Redat Package Manger) is the most common and and one of the best package managers out there.   There are some nice GUI tools,  but these really lack the details that some people may need.  That is where this RPM Cheat comes in.  Here are some usefull commands for working with RPMs at the command line.

rpm -ivh packagename.rpm This simply installs a package.  

rpm -Uvh packagename.rpm This simply upgrades a package or install a package fresh,  please note that the U is a capitol U.

rpm -qi packagename This give you the descrption of the package, e.g. rpm -qi mozilla

rpm -qp packagename.rpm This simply querys a package to determine its version number.    You can add an i after the qp to get a more thorough descrption. 

rpm -qpl packagename.rpm This querys a package to determine its version number and lists all the files that would be installed and where they would go.  The package does not need to be installed already to use this.

rpm -e packagename This removes (i.e. uninstalls) a package.  Another thing to note is that the rpm suffix is not used

rpm -q packagename Tells the version of packagename.  Note is that the rpm suffix is not used for this command either. 

rpm -ql packagename This lists all files install by package packagename.  Note is that the rpm suffix is not used for this command either.

rpm -qf filename This tells which package a file is a member of.  For example rpm -qf /usr/bin/mozilla will tell you that this file is included with the package mozilla.  

rpm -qa - list all installed RPM packages on you system.  An useful trick is to have this piped into a grep to search for something you havea rough idea of on how to spell e.g. rpm -qa | grep calc to look for all packages whcih have the word calc in them.


For RPM versions 4.0.x or earlier use these commands for building your own RPMs.
rpm --rebuild package.src.rpm  Builds an RPM for your system when you don't have or can't find a binary. for example: rpm --rebuild fvwm2-2.2.3.src.rpm.  The built RPM will be placed in /usr/src/<distroname>/RPMS/i386/ by default, e.g. for Red Hat it will be in /usr/src/redhat/RPMS/i386/.

rpm --rebuild --target [arch] packagename.src.rpm Builds an RPM for a specific architecture which can be nice for CPU optimizations.    An example: rpm --rebuild --target athlon galeon-1.0.2.src.rpm .  The RPM will be placed in /usr/src/<distroname>/RPMS/<architecture>,  e.g. /usr/src/redhat/RPMS/athlon/


For RPM versions 4.1 or higher use these commands for building your own RPMs.

rpmbuild --rebuild package.src.rpm  Builds an RPM for your system when you don't have or can't find a binary. for example: rpm --rebuild fvwm2-8.1.src.rpm.  The built RPM will be placed in /usr/src/<distroname>/RPMS/i386/ by default, e.g. for Red Hat it will be in /usr/src/redhat/RPMS/i386/.

rpmbuild --rebuild --target [arch] packagename.src.rpm Builds an RPM for a specific architecture which can be nice for CPU optimizations.    An example: rpm --rebuild --target athlon galeon-1.0.2.src.rpm .  The RPM will be placed in /usr/src/<distroname>/RPMS/<architecture>,  e.g. /usr/src/redhat/RPMS/athlon/


rpm -Uvh --force packagename.rpm Like it says - it forces an upgrade and/or install.  Use at your own risk. 

rpm -Uvh --nodeps packagename.rpm Have it ignore dependcy errors.  This can be handy when you have one package you know is installed but RPM does not have it in its database.
 
Old 10-20-2002, 04:01 AM   #3
chamkila
Member
 
Registered: Nov 2001
Distribution: Redhat 7.3 Slackware 8.1
Posts: 87

Original Poster
Rep: Reputation: 15
`Thanks alot pbharris I print out a copy.


chamkila
 
Old 12-06-2002, 03:59 PM   #4
hubert_ph
LQ Newbie
 
Registered: Dec 2002
Distribution: rh71 - rh73 - rh80
Posts: 1

Rep: Reputation: 0
You can also re-install gnorpm package from RH73 Disk#1! And It works!
(gnorpm-0.96-14.i386.rpm)

Hope this help, Hubert.
 
Old 12-27-2002, 08:31 AM   #5
Deffe
LQ Newbie
 
Registered: Oct 2002
Location: Belgium
Distribution: Red Hat 9
Posts: 14

Rep: Reputation: 0
Hi,

Stumbled into the same pitfall as everybody starting with RH8.0 I guess.
After searching on the RH 8.0 disks and trying things with the new
"Package Managment" (what you call managment ) I just downloaded
a rpm of the latest GnoRPM package.

Installed it.

It works fine, so guess I'm saved for the moment.

Marc
 
Old 02-26-2003, 01:08 PM   #6
yyaron
LQ Newbie
 
Registered: Apr 2001
Posts: 11

Rep: Reputation: 0
Thanks hubert

I've been fighting with trying to find a gui Package manager all day! I only wish I'd found your posting sooner.

Thanks,

- Yaron
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnorpm-we-need-it ftgow Red Hat 18 09-08-2003 12:07 PM
GnoRPM problem cjmanoj Linux - Software 1 08-11-2003 12:46 PM
gnorpm-auth albean Linux - Newbie 0 11-26-2002 04:28 PM
using GnoRPM on RH7.1 c0c0deuz Linux - Newbie 6 10-24-2001 09:30 AM
gnorpm crashed woody Linux - General 8 08-29-2001 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:14 PM.

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