I recall last year a discussion of using yum to remove unwanted packages, and tell it to remove only dependencies which were used by no other package. I can't seem to find how that was done in my notes, could someone give me a pointer to the method?
On Tue, 26 Mar 2013 15:32:59 -0400, Bill Davidsen wrote:
I recall last year a discussion of using yum to remove unwanted packages, and tell it to remove only dependencies which were used by no other package. I can't seem to find how that was done in my notes, could someone give me a pointer to the method?
yum list yum* yum info yum-plugin-remove-with-leaves
Michael Schwendt wrote:
On Tue, 26 Mar 2013 15:32:59 -0400, Bill Davidsen wrote:
I recall last year a discussion of using yum to remove unwanted packages, and tell it to remove only dependencies which were used by no other package. I can't seem to find how that was done in my notes, could someone give me a pointer to the method?
yum list yum* yum info yum-plugin-remove-with-leaves
Thank you! It was a plugin, which is why I didn't see it. That will do the trick.
On Tue, 26 Mar 2013 20:40:46 +0100 Michael Schwendt mschwendt@gmail.com wrote:
On Tue, 26 Mar 2013 15:32:59 -0400, Bill Davidsen wrote:
I recall last year a discussion of using yum to remove unwanted packages, and tell it to remove only dependencies which were used by no other package. I can't seem to find how that was done in my notes, could someone give me a pointer to the method?
yum list yum* yum info yum-plugin-remove-with-leaves
you could add the following to /etc/yum.conf "clean_requirements_on_remove=1"
On Tue, 2013-03-26 at 20:40 +0100, Michael Schwendt wrote:
On Tue, 26 Mar 2013 15:32:59 -0400, Bill Davidsen wrote:
I recall last year a discussion of using yum to remove unwanted packages, and tell it to remove only dependencies which were used by no other package. I can't seem to find how that was done in my notes, could someone give me a pointer to the method?
yum list yum* yum info yum-plugin-remove-with-leaves
-- Fedora release 19 (Schrödinger’s Cat) - Linux 3.9.0-0.rc3.git1.4.fc19.x86_64 loadavg: 0.15 0.08 0.06
package-cleanup can also be useful in this context.
poc
On Tue, 26 Mar 2013 18:22:49 -0430, Patrick O'Callaghan wrote:
yum list yum* yum info yum-plugin-remove-with-leaves
package-cleanup can also be useful in this context.
And let's not forget "yum history undo …", too, since it is the much cleaner solution for the occasional "install something to take a look and remove it again afterwards" scenario.
Pure leaf package removal bears the risk that you remove something that no other package depends on but _you_ need it.
Am 27.03.2013 13:33, schrieb Michael Schwendt:
On Tue, 26 Mar 2013 18:22:49 -0430, Patrick O'Callaghan wrote:
yum list yum* yum info yum-plugin-remove-with-leaves
package-cleanup can also be useful in this context.
And let's not forget "yum history undo …", too, since it is the much cleaner solution for the occasional "install something to take a look and remove it again afterwards" scenario.
Pure leaf package removal bears the risk that you remove something that no other package depends on but _you_ need it.
which can be easily optimized by a small meta-package and i maintain a bunch of them to have several machine types quickly installed and any unused package removed which makes upgrades and de-duplication-backups so much faster
last but not least you get rid by no longer required crap if you list there only base-packages without their specific deps and this is one reason why ton of years ago installed production servers are as clean as a fresh install __________________________
[root@rh:~]$ package-cleanup --leaves --all Loaded plugins: etckeeper, presto, protectbase lounge-rhsoft-extras-1.0-3.fc18.20130325.rh.noarch
[root@rh:~]$ rpm -qa | wc -l 1442
[root@rh:~]$ df Filesystem Type Size Used Avail Use% Mounted on /dev/md1 ext4 29G 6.1G 23G 21% / __________________________
[builduser@buildserver64:~]$ cat /rpmbuild/SPECS/lounge-rhsoft-workstation.spec Summary: metapackage for rhsoft workstation-packages Name: lounge-rhsoft-workstation Version: 4.2 Release: 3%{?dist} BuildArch: noarch Group: System Environment/Libraries URL: http://www.thelounge.net/ License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: acpid Requires: adobe-release Requires: aespipe Requires: alltray Requires: arp-scan Requires: attr Requires: audacity-freeworld Requires: avahi-tools Requires: bash-completion Requires: bind-utils Requires: bridge-utils Requires: chkrootkit Requires: cifs-utils Requires: cpulimit Requires: crypto-utils Requires: cryptsetup-luks Requires: cuetools Requires: curlftpfs Requires: cyrus-sasl Requires: cyrus-sasl-md5 Requires: dbmail Requires: dbmail-postfix-policyd Requires: dbmail-manpages Requires: dhclient Requires: dhcp Requires: dos2unix Requires: dovecot Requires: driconf Requires: dstat Requires: elinks Requires: etckeeper Requires: ethtool Requires: ffmpeg-latest Requires: filelight Requires: firefox Requires: flash-plugin Requires: ftp Requires: fuseiso Requires: fuse-smb Requires: fuse-sshfs Requires: gcc Requires: gcc-c++ Requires: gimp Requires: gnupg Requires: gocr Requires: google-chrome-stable Requires: GraphicsMagick Requires: graphviz Requires: grub2 Requires: gstreamer-ffmpeg Requires: gstreamer-plugins-ugly Requires: gutenprint-foomatic Requires: hdparm Requires: hpijs Requires: htop Requires: httpd-tools Requires: inkscape Requires: intel-gpu-tools Requires: irqbalance Requires: isomd5sum Requires: java-1.7.0-openjdk Requires: k3b-extras-freeworld Requires: kamera Requires: kcalc Requires: kcharselect Requires: kcoloredit Requires: kdegraphics-thumbnailers Requires: kde-l10n-German Requires: kdemultimedia-kio_audiocd Requires: kdemultimedia-kmix Requires: kde-plasma-ihatethecashew Requires: kde-print-manager Requires: kdesdk-kcachegrind Requires: kdesdk-kioslave Requires: kdesdk-kpartloader Requires: kde-settings-pulseaudio Requires: kdesvn Requires: kernel-devel Requires: keyutils Requires: kiconedit Requires: kid3 Requires: knemo Requires: krename Requires: krusader Requires: ksaneplugin Requires: ksnapshot Requires: ksysguard Requires: kwallet Requires: lame Requires: libdvdcss Requires: libdvdcss2 Requires: libreoffice-base Requires: libreoffice-langpack-de Requires: libreoffice-writer Requires: lm_sensors Requires: logwatch Requires: lounge-base Requires: lsscsi Requires: lynis Requires: man-pages Requires: man-pages-de Requires: md5deep Requires: mdadm Requires: mercurial Requires: microcode_ctl Requires: mirage Requires: mlocate Requires: mod_bw Requires: mod_dav_svn Requires: mod_flvx Requires: mod_h264_streaming Requires: mod_security Requires: mod_ssl Requires: mpage Requires: multitail Requires: mysql-manpages Requires: mysql-server Requires: mysqltuner Requires: nano Requires: netstat-nat Requires: nmap Requires: nrg2iso Requires: nss-mdns Requires: nss-tools Requires: ntp Requires: odt2txt Requires: okular Requires: openssh-askpass Requires: openvpn Requires: oxygen-gtk Requires: p7zip Requires: pciutils Requires: php-bcmath Requires: php-feedcreator Requires: php-gd Requires: php-imap Requires: phpMyAdmin Requires: php-pecl-apc Requires: php-pecl-zendopcache Requires: php-pecl-geoip Requires: php-pecl-imagick Requires: php-pecl-mailparse Requires: php-pecl-mysqlnd_qc Requires: php-pecl-ssh2 Requires: php-pecl-uploadprogress Requires: php-pecl-xdebug Requires: php-process Requires: php-soap Requires: php-suhosin Requires: php-tidy Requires: php-xml Requires: php-xmlrpc Requires: plasma-scriptengine-python Requires: postfix-manpages Requires: postfix-perl-scripts Requires: powertop Requires: prelink Requires: patchutils Requires: qgit Requires: qtcurve-kde4 Requires: rar Requires: rdesktop Requires: recode Requires: rkhunter Requires: rpl Requires: rpmfusion-nonfree-release Requires: rsnapshot Requires: rsyslog-mysql Requires: samba Requires: sane-backends-drivers-cameras Requires: sane-backends-drivers-scanners Requires: screen Requires: shntool Requires: smartmontools Requires: smbios-utils Requires: strace Requires: subversion-kde Requires: sudo Requires: svn2cl Requires: symlinks Requires: sysstat Requires: systemd-analyze Requires: tcpdump Requires: tcptraceroute Requires: tcptrack Requires: telnet Requires: thunderbird Requires: traceroute Requires: tigervnc Requires: tigervnc-server-module Requires: tree Requires: trickle Requires: udftools Requires: unhide Requires: uniconvertor Requires: unrar Requires: usbutils Requires: whois Requires: vlc Requires: vnstat Requires: xarchiver Requires: xorg-x11-drv-dummy Requires: xorg-x11-drv-evdev Requires: xorg-x11-drv-fbdev Requires: xorg-x11-drv-intel Requires: xorg-x11-drv-keyboard Requires: xorg-x11-drv-mouse Requires: xorg-x11-drv-v4l Requires: xorg-x11-drv-void Requires: xorg-x11-xdm Requires: xsane Requires: yum-plugin-protectbase Requires: yum-presto Requires: yum-utils Requires: zenity
%description metapackage for rhsoft workstation-packages
%files
%changelog * Sun Apr 29 2012 Reindl Harald h.reindl@thelounge.net - initial build
On Wed, 27 Mar 2013 13:40:47 +0100, Reindl Harald wrote:
Pure leaf package removal bears the risk that you remove something that no other package depends on but _you_ need it.
which can be easily optimized by a small meta-package
Of course. That's common practice in some places. It also serves as a guard against not well-tested Obsoletes (or a packager introducing or reverting subpackages).
On 03/27/2013 09:33 AM, Michael Schwendt wrote:
On Tue, 26 Mar 2013 18:22:49 -0430, Patrick O'Callaghan wrote:
yum list yum* yum info yum-plugin-remove-with-leaves
package-cleanup can also be useful in this context.
And let's not forget "yum history undo …", too, since it is the much cleaner solution for the occasional "install something to take a look and remove it again afterwards" scenario.
+10 !!
Pure leaf package removal bears the risk that you remove something that no other package depends on but _you_ need it.