LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 08-17-2006, 05:37 PM   #1
ahz10
Member
 
Registered: Apr 2005
Distribution: Fedora,Trustix,FreeBSD
Posts: 62

Rep: Reputation: 15
How to remove development packages (because fedora-rmdevelrpms doesn't work)


On Fedora, fedora-rmdevelrpms tries to remove too many development packages:
Code:
Found 8 devel packages:
  flex-2.5.4a-41.fc5
  bison-2.1-2.FC5
  automake-1.9.6-2
  pkgconfig-0.20-2.2.1
  gettext-0.14.5-3
  m4-1.4.4-1.2.1
  autoconf-2.59-7
...but removal would cause unresolved dependencies:
  nfs-utils-1.0.8-2.fc5 requires pkgconfig
  system-config-printer-0.6.151.7-1 requires m4
Skipped.
So, try this script:
Code:
#!/bin/bash

TOOLS="rpmlint cvs rpm-build subversion"
DEVEL=`rpm -qa --queryformat "%{NAME}\n" | grep "\\-devel" | xargs echo`
PKGS="$DEVEL $TOOLS flex bison automake  gettext  autoconf comps gdb"
echo removing packages: $PKGS
yum remove  $PKGS
And here's a command to find the biggest, installed development packages
Code:
rpm -qa --queryformat "%{SIZE} %{GROUP} %{NAME}\n" | grep -i devel | sort -n

Last edited by ahz10; 08-17-2006 at 05:48 PM.
 
  


Reply

Tags
script



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add/remove packages from Fedora 5 netscaper Fedora 4 03-09-2007 01:24 AM
Development packages satimis Fedora 2 06-06-2005 02:02 AM
Does Red Hat 7 RPM packages work also for Fedora Core 3? excidy Linux - Software 1 04-03-2005 07:31 PM
X Development Packages AmdMhz Linux - Software 2 09-29-2004 02:02 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration