The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
install and uninstall package anhtt SUN Solaris 1 05-10-2008 12:20 AM
how to install package amitarcade SUN Solaris 2 01-23-2008 02:56 PM
Unable to uninstall package in Solaris chrisanto_2000 SUN Solaris 1 06-25-2007 08:20 AM
Perl - How to uninstall? Will pkgrm uninstall all versions? alanlh SUN Solaris 1 06-04-2007 09:51 AM
Safe to uninstall with apt-get install? riwa Linux 2 04-03-2006 01:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-18-2007
Registered User
 

Join Date: May 2005
Posts: 192
uninstall and install a package

Hi,
on Red Hat Enterprise Linux AS release 3 (Taroon).
How can I :
1-install a package (exemple : compat-gcc-7.3-2.96.128.src.rpm)
2-uninstall (or delete or deinstall) a package (exemple : compat-gcc-7.3-2.96.122).
Many thanks before.
Reply With Quote
Forum Sponsor
  #2  
Old 01-18-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
man rpm - and beware as you have a source rpm there.

Cheers
ZB
Reply With Quote
  #3  
Old 01-19-2007
Registered User
 

Join Date: May 2005
Posts: 192
thank you,
yes , first I looked at Man, issuing rpm --help,
then I tried
[root@linux1 DB_10g_R2_x86]# rpm -q compat-gcc
compat-gcc-7.3-2.96.122
[root@linux1 DB_10g_R2_x86]# rpm -u compat-gcc-7.3-2.96.128
-u: unknown option
[root@linux1 DB_10g_R2_x86]# rpm -i compat-gcc-7.3-2.96.128
error: open of compat-gcc-7.3-2.96.128 failed: No such file or directory
[root@linux1 DB_10g_R2_x86]# pwd
/mnt/mobile/DB_10g_R2_x86
[root@linux1 DB_10g_R2_x86]# rpm -i /mnt/mobile/DB_10g_R2_x86/compat-gcc-7.3-2.96.128
error: open of /mnt/mobile/DB_10g_R2_x86/compat-gcc-7.3-2.96.128 failed: No such file or directory
[root@linux1 DB_10g_R2_x86]# rpm -uhv compat-gcc-7.3-2.96.128.
-uhv: unknown option
[root@linux1 DB_10g_R2_x86]#
non of them worked.

Please help.
Reply With Quote
  #4  
Old 01-19-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
OK, first, you need to find the standard binary rpm, not the source rpm. The rpm filename will end in .rpm, not .src.rpm. If you're not used to rpm, then attempting to build one from a source rpm will be too much for now... (if you're interested, check out http://fedora.redhat.com/docs/drafts/rpm-guide-en/, especially this ).

Anyway. To install the rpm, type

rpm -Uvh /path/to/mypackagenamehere.rpm

Performing an "U"pgrade will still "i"nstall the rpm if it is not currently installed.

To remove the rpm, type

rpm -e mypackagenamehere

Note that you drop the "rpm" extension when you're dealing with an installed package.

Cheers
ZB
Reply With Quote
  #5  
Old 01-19-2007
Registered User
 

Join Date: May 2005
Posts: 192
Thank you.
I have this problem now :
rpm -Fivh gcc-3.2.3-34.i386.rpm
warning: gcc-3.2.3-34.i386.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
error: Failed dependencies:
cpp = 3.2.3-34 is needed by gcc-3.2.3-34
libgcc >= 3.2.3-34 is needed by gcc-3.2.3-34
gcc = 3.2.3-20 is needed by (installed) gcc-c++-3.2.3-20
gcc = 3.2.3-20 is needed by (installed) gcc-g77-3.2.3-20
gcc = 3.2.3-20 is needed by (installed) gcc-gnat-3.2.3-20
gcc = 3.2.3-20 is needed by (installed) gcc-java-3.2.3-20
gcc = 3.2.3-20 is needed by (installed) gcc-objc-3.2.3-20
is there any way to enforce installation despite of depedencies ?
Or how to found a complete package ?
Regards.
Reply With Quote
  #6  
Old 01-19-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,477
Quote:
Originally Posted by big123456
is there any way to enforce installation despite of depedencies ?
Use --nodeps. But it is 99.9% not a good idea.

Quote:
Or how to found a complete package ?
Do you have the CDs? The package dependencies are most likely contained on your CDs. Or try searching on the Red Hat FTP servers. Or Google it.
Reply With Quote
  #7  
Old 01-19-2007
Registered User
 

Join Date: May 2005
Posts: 192
Thank you, I have already downloaded gcc-3.2.3-34.i386.rpm.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0