LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   How to remove development packages (because fedora-rmdevelrpms doesn't work) (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/how-to-remove-development-packages-because-fedora-rmdevelrpms-doesnt-work-474913/)

ahz10 08-17-2006 06:37 PM

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


All times are GMT -5. The time now is 08:52 PM.