LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 03:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration