Sponsored Content
Operating Systems Linux Red Hat How to remove 32/64 bit RPM's from your system Post 302525483 by mirni on Thursday 26th of May 2011 08:35:20 PM
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

 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
package-cleanup(1)														package-cleanup(1)

NAME
package-cleanup - clean up locally installed, duplicate, or orphaned packages SYNOPSIS
package-cleanup [options] <item ...> DESCRIPTION
package-cleanup is a program for cleaning up the locally-installed RPMs. GENERAL OPTIONS
-c <config file> Use alternative config file (default is /etc/yum.conf). -h, --help Help; display a help message and then quit. -q, --quiet Print out nothing unnecessary. -v, --version Report program version and exit. -y Agree to anything asked. --leaves List leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM. --orphans List installed packages which are not available from currently configured repositories. This is identical to "yum list extras", which may provide better output. --oldkernels Remove old kernel and kernel-devel packages. --problems List dependency problems in the local RPM database. If any problems are found it will exit with an exit code of 1. --dupes Scan for duplicates in the local RPM database. --cleandupes Scan for duplicates in the local RPM database and clean out the older versions. --count <COUNT> Number of duplicate/kernel packages to keep on the system (default 2) LEAVES OPTIONS
--all When listing leaf nodes also list leaf nodes that are not libraries. --leaf-regex A package name that matches this regular expression will be considered a leaf. --exclude-devel When listing leaf nodes do not list development packages. --exclude-bin When listing leaf nodes do not list packages with files in bin directories. OLDKERNELS OPTIONS
--keepdevel Do not remove kernel-devel packages when removing kernels EXAMPLES
List all dependency problems: package-cleanup --problems List all packages that are not in any Yum repository: package-cleanup --orphans Remove old kernels keeping 3 and leaving old kernel-devel packages installed: package-cleanup --oldkernels --count=3 --keepdevel List all leaf packages with no files in a bin directory whose name begins with either 'perl' or 'python': package-cleanup --leaves --exclude-bin --leaf-regex="^(perl)|(python)" FILES
As package-cleanup uses YUM libraries for retrieving all the information, it relies on YUM configuration for its default values like which repositories to use. Consult YUM documentation for details: /etc/yum.conf /etc/yum/repos.d/ /var/cache/yum/ SEE ALSO
yum.conf (5) http://yum.baseurl.org/ AUTHORS
See the Authors file included with this program. BUGS
There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs. Gijs Hollestelle 03 November 2005 package-cleanup(1)
All times are GMT -4. The time now is 04:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy