uninstall and install a package


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers uninstall and install a package
# 1  
Old 01-19-2007
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.
# 2  
Old 01-19-2007
man rpm - and beware as you have a source rpm there.

Cheers
ZB
# 3  
Old 01-19-2007
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.
# 4  
Old 01-19-2007
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
# 5  
Old 01-19-2007
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.
# 6  
Old 01-19-2007
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.
# 7  
Old 01-19-2007
Thank you, I have already downloaded gcc-3.2.3-34.i386.rpm.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

2. UNIX for Dummies Questions & Answers

debuginfo-install, how to uninstall?

I used the following command: $debuginfo-install glibc-2.12.90-17.i686 it is helpful when using gdb, but now I don't need it. How to uninstall the debuginfo packet? (2 Replies)
Discussion started by: vistastar
2 Replies

3. Solaris

Solaris 10 install and Uninstall instructions.

I want to work in solaris admin. If I install Solaris 10 in my system, will it support all solaris admin commands and admin tools? Do we need to install any tools to support or work in Solaris admin? can you please let me know the install and uninstall instructions for Solaris 10 ? Is solaris OS... (5 Replies)
Discussion started by: shijoe
5 Replies

4. Red Hat

How to install and uninstall apache on Red Hat Linux 5

Hi All, I installed Linus on virtual PC on my system. I want to configure apache on it. Also i want to install nagios and want to access through web broser from my system. How can I do this. Kindly provide soln its required urgently......... plsssssssssssssssss (4 Replies)
Discussion started by: sunray
4 Replies

5. Solaris

how to uninstall the package help

hi i installed wine1.1.2-sol11-i386.pkg.bz2 but wine doesnt work error err:process:start_wineboot failed to start wineboot, err 1359 how can i uninstall that package and how can i fix that error (2 Replies)
Discussion started by: ect1
2 Replies

6. AIX

Uninstall a relocatable package

Hi, If a package has been installed at normal location: installp -u <package_name> uninstalls the package However, if that has been installed relocatable, the above command fails. It requires the relocatable path as the parameter installp -R <relocation_path> -u <package_name> To find... (1 Reply)
Discussion started by: vibhor_agarwali
1 Replies

7. UNIX for Dummies Questions & Answers

RPM uninstall/install

Running FC5 on a Dell desktop. When I compile a LaTex file, it goes fine but only outlines blank boxes where figs should be. When I send the figs.eps and Tex file to a friend, his compiles and imbeds the fig. in the text of the DVI output using my files without add'nl control cards. I conclude... (1 Reply)
Discussion started by: blann
1 Replies

8. Solaris

install and uninstall package

I'm a newcomer for Solaris. I tried to install Net::FTP package ( a tool perl ) on our sun server 5.9. We used the below command: /usr/bin/perl MakeFilePL make make install How can I uninstall this package ? (1 Reply)
Discussion started by: anhtt
1 Replies

9. Solaris

Unable to uninstall package in Solaris

I am getting the below mentioned error while trying to unistall a package from a 2.8 Solaris box. Please help.. pkgrm: ERROR: unable to determine current run-state Removal of <PDMgr> failed (internal error). No changes were made to the system. (1 Reply)
Discussion started by: chrisanto_2000
1 Replies

10. Debian

Safe to uninstall with apt-get install?

Yesterday I incidently called apt-get with an ending "-". I noticed that I got promped if I wanted to remove the file. My question is if it's safe. I've never heard of anyone doing it so I just wanted to know. Syntax: 161659/home/riwa# apt-get install links2- Reading Package Lists... Done... (2 Replies)
Discussion started by: riwa
2 Replies
Login or Register to Ask a Question