![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
man rpm - and beware as you have a source rpm there.
Cheers ZB |
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
Quote:
|
|
#7
|
|||
|
|||
|
Thank you, I have already downloaded gcc-3.2.3-34.i386.rpm.
|
|||
| Google The UNIX and Linux Forums |