From 908566c03395b5150eff54a5006e46323c6c8a5d Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 21 2011 02:24:00 +0000 Subject: be quite strict about the rpms allowed to exist on the machine --- diff --git a/utils/c5_cleanup_vm.sh b/utils/c5_cleanup_vm.sh deleted file mode 100644 index 1e59544..0000000 --- a/utils/c5_cleanup_vm.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# you will almost never want to run this script. -# $1 = file name ( full path ) with rpms to retain - -rm /tmp/yum-cleanup - -for f in `rpm -qa`; do - pn=$(rpm --qf "%{name}" -q $f) - if [ `grep $pn $1 | wc -l ` -lt 1 ] ; then - echo 'erase ' $f >> /tmp/yum-cleanup - fi -done -echo >> /tmp/yum-cleanup -echo 'install ' >> /tmp/cleanp -cat req_list | sed -e 's/^/install /' >> /tmp/yum-cleanup - -yum -y shell /tmp/yum-cleanup -yum -y reinstall \* -if [ `uname -m` = 'x86_64' ]; then - yum -y erase *.i?86 -fi - -cd /etc -for x in `find . -maxdepth=2 -type f -name \*.rpmnew`; do - a=$( echo $x | sed -e 's/.rpmnew//' ) - rm -f $a - mv $x $a -done diff --git a/utils/c5_req_list b/utils/c5_req_list index 5ac5810..5e62826 100644 --- a/utils/c5_req_list +++ b/utils/c5_req_list @@ -1,192 +1,192 @@ -atk -audit-libs -audit-libs-python -authconfig -basesystem -bash -binutils -bitstream-vera-fonts -bzip2-libs -cairo -centos-release -centos-release-notes -checkpolicy -chkconfig -coreutils -cpio -cracklib -cracklib-dicts -crontabs -cryptsetup-luks -cups-libs -cyrus-sasl-lib -db4 -dbus -dbus-glib -dbus-libs -device-mapper -device-mapper-event -device-mapper-multipath -dhclient -dhcpv6-client -diffutils -dmidecode -dmraid -dmraid-events -e2fsprogs -e2fsprogs-libs -ecryptfs-utils -ed -elfutils-libelf -ethtool -expat -file -filesystem -findutils -fipscheck -fipscheck-lib -fontconfig -freetype -gawk -gdbm -glib2 -glibc -glibc-common -gnutls -grep -grub -gtk2 -gzip -hal -hdparm -hicolor-icon-theme -hmaccalc -hwdata -info -initscripts -iproute -iptables -iptables-ipv6 -iputils -iscsi-initiator-utils -kbd -kernel -keyutils -keyutils-libs -kpartx -krb5-libs -kudzu -less -libacl -libattr -libcap -libgcc -libgcrypt -libgpg-error -libhugetlbfs -libjpeg -libpng -libselinux -libselinux-python -libselinux-utils -libsemanage -libsepol -libstdc++ -libsysfs -libtermcap -libtiff -libusb -libuser -libutempter -libvolume_id -libX11 -libXau -libXcursor -libXdmcp -libXext -libXfixes -libXft -libXi -libXinerama -libxml2 -libXrandr -libXrender -logrotate -lvm2 -m2crypto -MAKEDEV -mcstrans -mingetty -mkinitrd -mktemp -module-init-tools -nash -ncurses -net-tools -newt -nspr -nss -openldap -openssh -openssh-clients -openssh-server -openssl -pam -pango -passwd -pciutils -pcre -pm-utils -policycoreutils -popt -prelink -procps -psmisc -python -python-elementtree -python-iniparse -python-libs -python-sqlite -python-urlgrabber -readline -redhat-logos -rhpl -rootfiles -rpm -rpm-libs -rpm-python -sed -selinux-policy -selinux-policy-targeted -setools -setserial -setup -sgpio -shadow-utils -slang -sqlite -sysfsutils -sysklogd -system-config-securitylevel-tui -SysVinit -tar -tcl -tcp_wrappers -termcap -trousers -tzdata -udev -udftools -usermode -util-linux -vim-minimal -wireless-tools -xorg-x11-filesystem -yum -yum-fastestmirror -yum-metadata-parser -zlib -kernel-xen -redhat-menus -desktop-file-utils -gpg-pubkey +|atk| +|audit-libs| +|audit-libs-python| +|authconfig| +|basesystem| +|bash| +|binutils| +|bitstream-vera-fonts| +|bzip2-libs| +|cairo| +|centos-release| +|centos-release-notes| +|checkpolicy| +|chkconfig| +|coreutils| +|cpio| +|cracklib| +|cracklib-dicts| +|crontabs| +|cryptsetup-luks| +|cups-libs| +|cyrus-sasl-lib| +|db4| +|dbus| +|dbus-glib| +|dbus-libs| +|device-mapper| +|device-mapper-event| +|device-mapper-multipath| +|dhclient| +|dhcpv6-client| +|diffutils| +|dmidecode| +|dmraid| +|dmraid-events| +|e2fsprogs| +|e2fsprogs-libs| +|ecryptfs-utils| +|ed| +|elfutils-libelf| +|ethtool| +|expat| +|file| +|filesystem| +|findutils| +|fipscheck| +|fipscheck-lib| +|fontconfig| +|freetype| +|gawk| +|gdbm| +|glib2| +|glibc| +|glibc-common| +|gnutls| +|grep| +|grub| +|gtk2| +|gzip| +|hal| +|hdparm| +|hicolor-icon-theme| +|hmaccalc| +|hwdata| +|info| +|initscripts| +|iproute| +|iptables| +|iptables-ipv6| +|iputils| +|iscsi-initiator-utils| +|kbd| +|kernel| +|keyutils| +|keyutils-libs| +|kpartx| +|krb5-libs| +|kudzu| +|less| +|libacl| +|libattr| +|libcap| +|libgcc| +|libgcrypt| +|libgpg-error| +|libhugetlbfs| +|libjpeg| +|libpng| +|libselinux| +|libselinux-python| +|libselinux-utils| +|libsemanage| +|libsepol| +|libstdc++| +|libsysfs| +|libtermcap| +|libtiff| +|libusb| +|libuser| +|libutempter| +|libvolume_id| +|libX11| +|libXau| +|libXcursor| +|libXdmcp| +|libXext| +|libXfixes| +|libXft| +|libXi| +|libXinerama| +|libxml2| +|libXrandr| +|libXrender| +|logrotate| +|lvm2| +|m2crypto| +|MAKEDEV| +|mcstrans| +|mingetty| +|mkinitrd| +|mktemp| +|module-init-tools| +|nash| +|ncurses| +|net-tools| +|newt| +|nspr| +|nss| +|openldap| +|openssh| +|openssh-clients| +|openssh-server| +|openssl| +|pam| +|pango| +|passwd| +|pciutils| +|pcre| +|pm-utils| +|policycoreutils| +|popt| +|prelink| +|procps| +|psmisc| +|python| +|python-elementtree| +|python-iniparse| +|python-libs| +|python-sqlite| +|python-urlgrabber| +|readline| +|redhat-logos| +|rhpl| +|rootfiles| +|rpm| +|rpm-libs| +|rpm-python| +|sed| +|selinux-policy| +|selinux-policy-targeted| +|setools| +|setserial| +|setup| +|sgpio| +|shadow-utils| +|slang| +|sqlite| +|sysfsutils| +|sysklogd| +|system-config-securitylevel-tui| +|SysVinit| +|tar| +|tcl| +|tcp_wrappers| +|termcap| +|trousers| +|tzdata| +|udev| +|udftools| +|usermode| +|util-linux| +|vim-minimal| +|wireless-tools| +|xorg-x11-filesystem| +|yum| +|yum-fastestmirror| +|yum-metadata-parser| +|zlib| +|kernel-xen| +|redhat-menus| +|desktop-file-utils| +|gpg-pubkey| diff --git a/utils/c6_req_list b/utils/c6_req_list new file mode 100644 index 0000000..e739bd4 --- /dev/null +++ b/utils/c6_req_list @@ -0,0 +1,204 @@ +setup +basesystem +ncurses-base +glibc-common +glibc +bash +info +popt +libcom_err +libsepol +glib2 +shadow-utils +nspr +nss-util +libattr +libcap +libudev +lua +cyrus-sasl-lib +libidn +libuuid +elfutils-libelf +libstdc++ +grep +bzip2 +libselinux-utils +cpio +libcap-ng +expat +dbus-glib +less +libusb +iproute +nss-softokn +upstart +vim-minimal +libutempter +psmisc +db4-utils +libss +binutils +which +ncurses +gzip +cracklib-dicts +pam +logrotate +nss-sysinit +pciutils-libs +mingetty +krb5-libs +openldap +libcurl +rpm-libs +gnupg2 +libuser +fipscheck-lib +ustr +gdbm +python-libs +yum-metadata-parser +rpm-python +dash +newt +plymouth-core-libs +plymouth-scripts +python-iniparse +yum +kbd-misc +iputils +initscripts +device-mapper-libs +device-mapper-event-libs +lvm2-libs +rsyslog +libcgroup +cyrus-sasl +cronie-anacron +crontabs +kernel-firmware +lvm2 +authconfig +sudo +audit +acl +libdrm +dracut +kernel +bfa-firmware +iwl6050-firmware +iwl6000-firmware +grub +ql2400-firmware +libertas-usb8388-firmware +xorg-x11-drv-ati-firmware +iwl4965-firmware +iwl3945-firmware +rt61pci-firmware +ql2100-firmware +zd1211-firmware +ql23xx-firmware +ivtv-firmware +libgcc +filesystem +ca-certificates +tzdata +nss-softokn-freebl +ncurses-libs +zlib +audit-libs +chkconfig +db4 +libselinux +gamin +sed +bzip2-libs +readline +libacl +gawk +dbus-libs +sqlite +iptables +file-libs +libblkid +xz-libs +pcre +libgpg-error +findutils +checkpolicy +tcp_wrappers-libs +sysvinit-tools +pth +libgcrypt +gmp +grubby +iptables-ipv6 +libnih +pinentry +tar +MAKEDEV +net-tools +e2fsprogs-libs +diffutils +m4 +libxml2 +coreutils-libs +cracklib +coreutils +module-init-tools +nss +procps +ethtool +keyutils-libs +openssl +libssh2 +curl +rpm +gpgme +mysql-libs +fipscheck +libsemanage +libffi +python +pygpgme +python-pycurl +slang +newt-python +redhat-logos +python-urlgrabber +yum-plugin-fastestmirror +hwdata +centos-release +util-linux-ng +udev +device-mapper +device-mapper-event +kbd +openssh +policycoreutils +postfix +cronie +selinux-policy +openssh-server +dhclient +passwd +efibootmgr +e2fsprogs +attr +plymouth +dracut-kernel +selinux-policy-targeted +iwl5150-firmware +b43-openfwwf +aic94xx-firmware +system-config-firewall-base +iwl5000-firmware +rootfiles +atmel-firmware +iwl1000-firmware +ql2200-firmware +rt73usb-firmware +ql2500-firmware +ipw2100-firmware +ipw2200-firmware diff --git a/utils/cleanp_cm.sh b/utils/cleanp_cm.sh deleted file mode 100644 index 1e59544..0000000 --- a/utils/cleanp_cm.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# you will almost never want to run this script. -# $1 = file name ( full path ) with rpms to retain - -rm /tmp/yum-cleanup - -for f in `rpm -qa`; do - pn=$(rpm --qf "%{name}" -q $f) - if [ `grep $pn $1 | wc -l ` -lt 1 ] ; then - echo 'erase ' $f >> /tmp/yum-cleanup - fi -done -echo >> /tmp/yum-cleanup -echo 'install ' >> /tmp/cleanp -cat req_list | sed -e 's/^/install /' >> /tmp/yum-cleanup - -yum -y shell /tmp/yum-cleanup -yum -y reinstall \* -if [ `uname -m` = 'x86_64' ]; then - yum -y erase *.i?86 -fi - -cd /etc -for x in `find . -maxdepth=2 -type f -name \*.rpmnew`; do - a=$( echo $x | sed -e 's/.rpmnew//' ) - rm -f $a - mv $x $a -done