How to remove 32/64 bit RPM's from your system

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to remove 32/64 bit RPM's from your system
# 1  
Old 05-26-2011
How to remove 32/64 bit RPM's from your system

Hi,

I have a 64-bit RHEL 5.5. In order to make a particular product work I want to uninstall some rpms which is specific to 64 bit. Wondering if anyone has a way how to remove the 64-bit rpm without disturbing the i386 rpms.

What I find when I googled is all are removing forcefully, but sometimes doing this makes the system very unstable. Wondering if anybody has tried this possibility of just removing a particular rpm without disturbing the other architectures.

Thanks,
Dinesh
# 2  
Old 05-26-2011
I suggest you use yum:
Code:
$ yum list installed 'znc*'
Loaded plugins: fastestmirror, kernel-module, priorities
Reducing CentOS-5 - Plus to included packages only
Finished
Installed Packages
znc.x86_64                            0.098-1.el5                      installed
znc-devel.i386                        0.098-1.el5                      installed
znc-devel.x86_64                      0.098-1.el5                      installed
$ sudo yum remove znc-devel.x86_64
--> Running transaction check
---> Package znc-devel.x86_64 0:0.098-1.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch           Version               Repository         Size
================================================================================
Removing:
 znc-devel         x86_64         0.098-1.el5           installed         234 k

Transaction Summary
================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : znc-devel                                                1/1 

Removed:
  znc-devel.x86_64 0:0.098-1.el5                                                

Complete!

$ yum list installed 'znc*'
Loaded plugins: fastestmirror, kernel-module, priorities
Reducing CentOS-5 - Plus to included packages only
Finished
Installed Packages
znc.x86_64                           0.098-1.el5                       installed
znc-devel.i386                       0.098-1.el5                       installed

Just be careful not to remove a bunch of dependencies that other packages may depend on.
Same thing can be done with rpm. In this example
Code:
$ sudo rpm -e znc-devel.x86_64

# 3  
Old 05-30-2011
Find the rpm list with Arch using the below one.
sudo /bin/rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}-%{arch}\n"

And remove the rpm which u need using
sudo /bin/rpm -q pkgname.arch

hope this will help for ur issue.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

I can't remove rpm package

Hello!, I can't remove a rpm package with rpm -e net-snmp Nothing happened, and the process returns D status when i see with ps aux | grep rpm. When i say "Nothing Happened", the terminal don't return any message, and not remove the package. What can I do to remove? Ps: I work with Red... (1 Reply)
Discussion started by: Douglas Ramalho
1 Replies

2. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

3. Homework & Coursework Questions

Four-Level multi-paging on x86 system with 64 bit addressing

1. The problem statement, all variables and given/known data: Hi all, I've got a huuuuuuge problem with understanding this new concept of multi-paging. I really tried to research but i could not find anything significant. I've been trying to understand this for 4 days and i cannot. The question... (0 Replies)
Discussion started by: snowboarder
0 Replies

4. UNIX for Dummies Questions & Answers

How to remove group write bit?

I know this may sound little incomplete but this is what i read on some linux hardening guide.I dont have any clue on how to remove group's write bit. I m posting the exact sentence of the hardening guide. What all system files to be taken care of? ---------- Post updated 10-04-10 at... (3 Replies)
Discussion started by: pinga123
3 Replies

5. Linux

Operating system Bit verison

How to check the Linux operating System bit version i.e if the operating system is 32-bit verison or 64-bit verison? There is a file which gives this information, i think it is in /usr/bin or /usr/sbin. I am not sure about this? This Might be a silly question, but it is important. ;) (7 Replies)
Discussion started by: sasiharshav
7 Replies

6. UNIX for Dummies Questions & Answers

unix a 32-bit operating system?

heyfrenz i just need a proper explanation of why is unix a 32-bit operating system??....a proper answer with proper explanation.... (6 Replies)
Discussion started by: silverrock7
6 Replies

7. UNIX for Advanced & Expert Users

encrypting file system using AES 256 bit

Experts, I am trying to encrypt my filesystem using the AES 256 bit type of encryption. I am using FreeBSD 5.4 and need to encrypt one of the mounted points. Does anybody have any good idea of how to do it? Is there any documentation about encrypting the disk partition as this method is more... (2 Replies)
Discussion started by: jimmynath
2 Replies

8. UNIX for Dummies Questions & Answers

rpm and file system

Hi, There is an option to specify rpm while creating the file system ( default - 3600 ). Question is, If a file system which is built with default option is restored to a new disk with a higher rpm capacity, ( say 7200 rpm ), am I loosing any performance gains ? I mean, should I go for a... (1 Reply)
Discussion started by: shibz
1 Replies
Login or Register to Ask a Question