Koozali.org: home of the SME Server

remove all contribs

Offline kruhm

  • *
  • 680
  • +0/-0
remove all contribs
« on: June 13, 2006, 06:20:10 AM »
Am I the only one having trouble trying to remember what contribs I installed across my servers?

My contribs are in an ibay but some were installed via a script. So I'm not exactly sure what's installed and isn't installed. Maybe you fall into the same boat.

To list out all rpm's and when they were installed.
Quote

rpm -qa --last


Get the list of rpms that are installed and compare to original:
Quote

# rpm -qa --queryformat '%{NAME}\n' | sort > rpms_installed
# vi rpms_original (paste in the rpms listed below)
# diff -u rpms_original rpms_installed > rpms_diff


Here you can read rpms_diff for a list of differences.
Everything with a + is added from the original.
Everything with a - is removed from the original:
Quote

# cat rpms_diff


Or you can look at just the contribs:
Quote

#grep "+[a-z]" rpms_diff


Either remove the rpms manually.
Quote

#yum remove <packagename>


Or script the removal.
Can someone help me here? Will this work? Something similar to:
Quote

# yum remove grep "+[a-z]" rpms_diff | sed "s/+//" | sed "s/compat-glibc//"


================================================================================================
Using the info above I create a process & procedure for upgrading my servers. I'm posting it as an upgrade guide.
Quote

#PROCEDURE GUIDE TO UPGRADE TO V7

#ASSUMPTIONS
-As always, I'm not responsible for lost data. Use at your own risk. YMMV.
-this is a procedure guide for the somewhat expericenced. Not necessarily a step-by-step for newbies.
-the dashes signify a new step. Don't include them in the command. Print out the procedure and checkmark the dashes as you go through the process so you know when the step is completed.
-have old v6 in raid
-you've blocked off 2 hrs of time

#OVERVIEW
-remove all contribs & custom templates from v6
-install all v6 yum packages
-upgrade to v7
-signal-event post-upgrade
-signal-event reboot

###---PROCEDURE-OLDSYSTEM---###
#RE-RAID & BACKUP
-re-raid fully to 100%
-remove drive as a backup

#STOP EMAIL
-/etc/init.d/smtpfront-qmail stop
-/etc/init.d/qmail stop

#GET LIST OF PACKAGE DIFFERENCES
-rpm -qa --queryformat '%{NAME}\n' | sort > rpms_installed
-create rpms_original file (use list below)
-diff -u rpms_original rpms_installed > rpms_diff

#Here you can read rpms_diff for a list of differences.
#Everything with a + is added from the original.
#Everything with a - is removed from the original:
-cat rpms_diff

#REMOVE ALL CONTRIBS NOT ON A V6.0.1 FRESH INSTALL BY PACKAGENAME
-yum remove grep "+[a-z]" rpms_diff | sed "s/+//" | sed "s/compat-glibc//"

#REMOVE ALL CUSTOM TEMPLATES
-remove all templates-custom & templates-user-custom

#REMOVE ALL CONTRIBS NOT ON A V6.0.1 FRESH INSTALL BY VERSIONRELEASE
-rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' | sort > rpms_installed_nvr
-create rpms_original_nvr file (use list below)
-diff -u rpms_original_nvr rpms_installed_nvr > rpms_diff_nvr
#Look at the list of differences
-grep "+[a-z]" rpms_diff_nvr
#remove all the packages in the list by hand
-yum remove <packagename>
#Also, if needed, remove the MySQL packages like this.
-rpm --erase --justdb --noscripts --notriggers MySQL-server MySQL-client
#These are the packages I had left over & didn't remove:
+compat-glibc-6.2-2.1.3.2
+openssl-0.9.6m-1es1
+zlib-1.2.1.1-4

#YUM TO LATEST PACKAGES
#just to see the list
-yum list
#install by hand
-yum install <packagename>
#speed up process by installing all packages by letter. For example: yum install p*
#you may have to fiddle around here a little bit. But it shouldn't be that hard.

#RERUN TEMPLATES & REBOOT
-se post-upgrade
-se reboot

#UPLUG FROM WAN

#BACKUP MYSQL TO DB
-se pre-backup

###---PROCEDURE-NEWSYSTEM---###
#EITHER UPGRADE FROM CD (insert CD) --OR-- RESTORE FROM DISK (instructions below)

#I chose to upgrade from CD because in my testing I didn't see any advantages or differences in restoring from disk other than moving to new hardware.

##RESTORE FROM DISK BEGIN##

#REMOVE HD FROM OLD V6

#INSTALL OLD HD IN NEW SYSTEM ON HDA

#CHANGE ALL PARTITIONS TYPE TO LINUX
-boot from KNOPPIX
-open terminal
-su
-fdisk /dev/hda
-t <to change type>
-L <to see hex codes for different FS types>
-83 (i think this is linux, but check in the list to be certain)
-w
-q
-exit
-exit
-reboot

#COPY HD INFO FROM OLD HD (ON HDA) TO NEW SYSTEM
-cd /
-mkdir /mnt/tmp
-mount /dev/hda2 /mnt/tmp
-/sbin/e-smith/db configuration setprop backup Program CopyFromDisk status enabled
-signal-event pre-restore
-signal-event restore-tape /mnt/tmp
-signal-event post-upgrade
-signal-event reboot

##RESTORE FROM DISK END##

###---AFTER UPGRADE PROCDURE---###

#INSTALL NEW CONTRIBS
-print out the list of rpms_diff & decide which ones you want and are available.

#adjust RBL's
-config show qpsmtpd
-config setprop qpsmtpd RBLList sbl-xbl.spamhaus.org,dsn.rfc-ignorant.org,postmaster.rfc-ignorant.org,abuse.rfc-gnorant.org,whois.rfc-ignorant.org,bogusmx.rfc-ignorant.org,dnsbl.njabl.org,relays.ordb.org,dnsbl.sorbs.net,list.dsbl.org
-config setprop qpsmtpd DNSBL enabled RHSBL enabled
-signal-event email-update
-svc -t /service/qpsmtpd

#install lat
-wget http://mirror.contribs.org/smeserver/contribs//jbennett/sme7/lat/e-smith-lazy_admin_tools-0_9_1-0_noarch.rpm
-rpm -Uvh e-smith-lazy_admin_tools-0_9_1-0_noarch.rpm

#adjust forwarded users to forward instead of deliver locally
#(users that forwarded before used a procmail option which isn't available, so it's set to deliver locally)
-lat-dump -d
-adjust the file
-lat-users -a -I <filename>

Offline kruhm

  • *
  • 680
  • +0/-0
remove all contribs
« Reply #1 on: June 14, 2006, 05:27:03 PM »
If someone verifies this process works, I'll post it in DOCUMENTATION.

I'm posting a list of original rpms installed on v6 which is yummed all the way both with and without NAME-VERSION-RELEASE.

You can use this as--
rpms_original:
Code: [Select]

anacron
apache
apmd
ash
aspell
aspell-en-ca
aspell-en-gb
aspell-es
aspell-fr
at
authconfig
autopassword
basesystem
bash
bc
bdflush
bind-utils
binutils
buffer
bzip2
bzip2-libs
cdrecord
checkpassword
chkconfig
compat-libstdc++
console-tools
cpio
cracklib
cracklib-dicts
crontabs
curl
cvm
cvs
cyrus-sasl
cyrus-sasl-md5
daemontools
db1
db2
db3
dev
dhcp
dhcpcd
diald
diald-top
dietlibc
diffutils
djbdns
dosfstools
dot-forward
dovecot
dump
dvdrecord
e2fsprogs
ed
eject
e-smith
e-smith-apache
e-smith-apache-proxy
e-smith-backup
e-smith-base
e-smith-boot-image
e-smith-cvm-unix-local
e-smith-daemontools
e-smith-devtools
e-smith-dnscache
e-smith-domains
e-smith-dynamicdns-dyndns
e-smith-dynamicdns-dyndns.org
e-smith-dynamicdns-tzo
e-smith-dynamicdns-yi
e-smith-email
e-smith-flexbackup
e-smith-formmagick
e-smith-horde
e-smith-hosts
e-smith-ibays
e-smith-imap
e-smith-imp
e-smith-ipmasq
e-smith-ldap
e-smith-lib
e-smith-lib-compspec
e-smith-lib-Tai64n
e-smith-lilo
e-smith-LPRng
e-smith-mailfront
e-smith-manager
e-smith-mysql
e-smith-netatalk
e-smith-ntp
e-smith-nutUPS
e-smith-oidentd
e-smith-openssh
e-smith-packetfilter
e-smith-php
e-smith-portforwarding
e-smith-pptpd
e-smith-proftpd
e-smith-proxy
e-smith-proxypass
e-smith-qmail
e-smith-qmailanalog
e-smith-quota
e-smith-regedit
e-smith-reinstall-floppy
e-smith-release
e-smith-rpm
e-smith-rp-pppoe
e-smith-samba
e-smith-starterwebsite
e-smith-support
e-smith-telnet
e-smith-test
e-smith-tinydns
e-smith-turba
e-smith-viewlogfiles
ethtool
expat
fastforward
fetchmail
file
filesystem
fileutils
findutils
flexbackup
freetype
ftp
gawk
gd
gdbm
glib
glib2
glibc
glibc-common
gmp
gnupg
gpm
grep
groff
gzip
hdparm
horde
hotplug
hwdata
imp
indexhtml
info
initscripts
iproute
iptables
iptraf
iptstate
iputils
isdn4k-utils
kbdconfig
kernel
kernel-pcmcia-cs
kernel-smp
kernel-utils
krb5-libs
kudzu
less
libcap
libjpeg
libpcap
libpng
libsmbpw
libstdc++
libtermcap
libtool-libs
libuser
libxml2
lilo
lockdev
logrotate
losetup
LPRng
lsof
lynx
mailcap
maildrop
mailfront
mailx
make
MAKEDEV
man
mbuffer
mc
mdadm
mingetty
minicom
mkbootdisk
mkinitrd
mktemp
mm
mod_auth_external
mod_perl
mod_ssl
modutils
mount
mouseconfig
mtools
mt-st
mutt
mysql
mysqlclient9
mysql-devel
mysql-server
ncompress
ncurses
ncurses4
netatalk
net-tools
newt
ntp
nut
nut-client
oidentd
openldap
openldap-clients
openldap-servers
openssh
openssh-clients
openssh-server
openssl
pam
passwd
patch
pciutils
pcre
perl
perl-Authen-PAM
perl-CGI
perl-CGI-FormMagick
perl-CGI-Persistent
perl-Class-ParamParser
perl-Clone
perl-Convert-ASN1
perl-CPAN
perl-Crypt-Cracklib
perl-Crypt-SSLeay
perl-DBD-MySQL
perl-DB_File
perl-DBI
perl-Digest-HMAC
perl-Digest-MD5
perl-Digest-Nilsimsa
perl-Digest-SHA1
perl-Error
perl-Filter-Handle
perl-FreezeThaw
perl-gettext
perl-HTML-Parser
perl-HTML-Tagset
perl-I18N-AcceptLanguage
perl-I18N-LangTags
perl-libwww-perl
perl-Mail-RFC822-Address
perl-Mail-SpamAssassin
perl-MailTools
perl-MIME-Base64
perl-NDBM_File
perl-Net-DNS
perl-Net-IPv4Addr
perl-Net-Ping
perl-Object-Persistence
perl-perl-ldap
perl-Proc-PID_File
perl-Quota
perl-suidperl
perl-Test-Harness-Straps
perl-Test-Inline
perl-Test-Simple
perl-Text-Iconv
perl-Text-Template
perl-Text-Wrapper
perl-Time-HiRes
perl-Unix-ConfigFile
perl-URI
perl-WWW-Automate
perl-XML-Parser
php
php-imap
php-ldap
php-mysql
pine
popt
ppp
ppp-modules
pptpd
procmail
procps
proftpd
psmisc
pspell
pwdb
python
python2
qmail
qmailanalog
qmail-qfilter
quota
raidtools
rcs
readline
rmt
rootfiles
rpm
rpm-build
rpm-perl
rpm-python
rp-pppoe
rsync
safecat
samba
samba-client
samba-common
sash
screen
sed
setserial
setup
shadow-utils
shapecfg
sharutils
sh-utils
slang
slocate
SMEServer
sortspam
spamassassin
squid
sshell
stat
strace
stunnel
sudo
supervise-scripts
sysklogd
syslinux
SysVinit
tai64nunix
tar
tcl
tcpdump
tcp_wrappers
tcsh
telnet
telnet-server
termcap
textutils
time
tmpwatch
tnef
traceroute
turba
ucd-snmp
ucspi-tcp
unzip
usbutils
usermode
utempter
util-linux
vim-common
vim-enhanced
vim-minimal
vixie-cron
wget
which
whois
wireless-tools
words
xinetd
yum
zip
zlib


You can use this as--
rpms_original_nvr:
Code: [Select]

anacron-2.3-17
apache-1.3.27-9.legacy
apmd-3.0.2-10
ash-0.3.7-2
aspell-0.33.7.1-9
aspell-en-ca-0.33.7.1-9
aspell-en-gb-0.33.7.1-9
aspell-es-0.2-8
aspell-fr-0.1-1
at-3.1.8-23
authconfig-4.2.8-4
autopassword-2.0-3
basesystem-7.0-2
bash-2.05a-13
bc-1.06-8
bdflush-1.5-17
bind-utils-9.2.1-1.7x.2
binutils-2.11.93.0.2-11
buffer-1.19-5es
bzip2-1.0.2-2.2.73.legacy
bzip2-libs-1.0.2-2.2.73.legacy
cdrecord-1.10-11
checkpassword-0.90-02
chkconfig-1.3.5-3
compat-libstdc++-6.2-2.9.0.16
console-tools-19990829-40
cpio-2.4.2-26
cracklib-2.7-15
cracklib-dicts-2.7-15
crontabs-1.10-1
curl-7.9.5-2.2.legacy
cvm-0.11-1
cvs-1.11.1p1-17.legacy
cyrus-sasl-1.5.24-25.2.legacy
cyrus-sasl-md5-1.5.24-25.2.legacy
daemontools-0.76-2memphis
db1-1.85-8
db2-2.4.14-10
db3-3.3.11-6
dev-3.3-4
dhcp-2.0pl5-8.2.legacy
dhcpcd-1.3.22pl1-7
diald-0.99.4-2
diald-top-2.1pl4-2es
dietlibc-0.15-2
diffutils-2.7.2-5
djbdns-1.05-01
dosfstools-2.8-1
dot-forward-0.71-02
dovecot-0.99.14-01nx1
dump-0.4b25-1.72.1es02
dvdrecord-0.1.2-1
e2fsprogs-1.27-3
ed-0.2-25
eject-2.0.12-4
e-smith-4.2.0-06
e-smith-apache-1.0.1-01sme2
e-smith-apache-proxy-1.0.0-02
e-smith-backup-1.13.2-02sme01
e-smith-base-4.14.1-16sme1
e-smith-boot-image-1.10.0-03
e-smith-cvm-unix-local-1.0.0-01
e-smith-daemontools-1.6.0-02
e-smith-devtools-1.12.0-01
e-smith-dnscache-0.3.0-04sme02
e-smith-domains-1.1.0-03
e-smith-dynamicdns-dyndns-1.4.0-01
e-smith-dynamicdns-dyndns.org-1.4.0-01
e-smith-dynamicdns-tzo-1.4.0-01
e-smith-dynamicdns-yi-1.4.0-01
e-smith-email-4.14.0-11
e-smith-flexbackup-1.8.0-01sme1
e-smith-formmagick-1.2.2-02
e-smith-horde-1.10.0-02
e-smith-hosts-1.12.0-02sme1
e-smith-ibays-1.0.3-06
e-smith-imap-1.2.0-03sme001
e-smith-imp-1.10.0-02sme02
e-smith-ipmasq-1.10.0-01
e-smith-ldap-4.10.0-03sme02
e-smith-lib-1.14.0-10sme01
e-smith-lib-compspec-0.2.0-01
e-smith-lib-Tai64n-1.14.0-08
e-smith-lilo-1.12.0-04sme1
e-smith-LPRng-1.12.0-04
e-smith-mailfront-1.4.0-01sme1
e-smith-manager-1.10.0-02
e-smith-mysql-1.10.0-02
e-smith-netatalk-1.12.0-03
e-smith-ntp-1.12.0-01
e-smith-nutUPS-1.0.0-01
e-smith-oidentd-1.0.0-01
e-smith-openssh-1.10.1-01sme2
e-smith-packetfilter-1.14.0-03
e-smith-php-1.10.0-01
e-smith-portforwarding-0.2.0-02
e-smith-pptpd-1.10.0-02
e-smith-proftpd-1.10.0-04
e-smith-proxy-4.12.0-02
e-smith-proxypass-1.2.0-02
e-smith-qmail-1.8.0-04
e-smith-qmailanalog-1.10.0-01
e-smith-quota-1.8.0-01
e-smith-regedit-1.4.0-01
e-smith-reinstall-floppy-1.12.0-01
e-smith-release-6.0.1-01
e-smith-rpm-1.3.1-01
e-smith-rp-pppoe-1.10.0-01
e-smith-samba-1.12.0-02sme01
e-smith-starterwebsite-0.2.0-01
e-smith-support-1.4.4-04
e-smith-telnet-1.6.0-02
e-smith-test-1.0.1-01
e-smith-tinydns-0.5.0-07sme01
e-smith-turba-1.4.0-01
e-smith-viewlogfiles-1.6.0-02
ethtool-1.5-1
expat-1.95.2-2
fastforward-0.51-03
fetchmail-5.9.0-21.7.3
file-3.39-8.7x
filesystem-2.1.6-2
fileutils-4.1-10.4
findutils-4.1.7-4
flexbackup-1.1.7-1es.sme01
freetype-2.0.9-2
ftp-0.17-13
gawk-3.1.0-4
gd-1.8.4-4.1.legacy
gdbm-1.8.0-14
glib-1.2.10-5
glib2-2.0.1-2
glibc-2.2.5-44.legacy.6
glibc-common-2.2.5-44.legacy.6
gmp-4.0.1-3
gnupg-1.0.7-13
gpm-1.19.3-21
grep-2.5.1-1
groff-1.17.2-12
gzip-1.3.3-1.2.legacy
hdparm-4.6-1
horde-2.2.9-1sme00
hotplug-2002_04_01-3
hwdata-0.47-1es2
imp-3.2.8-1sme01
indexhtml-7.3-3
info-4.1-1
initscripts-6.67-1es26
iproute-2.4.7-7.73.1
iptables-1.2.8-8.73.1.legacy
iptraf-2.5.0-3
iptstate-1.2.1-1
iputils-20020124-3
isdn4k-utils-3.1-53
kbdconfig-1.9.15-2
kernel-2.4.20-18.7
kernel-pcmcia-cs-3.1.27-18
kernel-smp-2.4.20-18.7
kernel-utils-2.4-7.4
krb5-libs-1.2.4-16.1.legacy
kudzu-0.99.52-1
less-358-24
libcap-1.10-8
libjpeg-6b-19
libpcap-0.6.2-17.7.3.6.legacy
libpng-1.0.15-0.7x.1.legacy
libsmbpw-1.1-3
libstdc++-2.96-113
libtermcap-2.0.8-28
libtool-libs-1.4.2-13.legacy
libuser-0.50.2-1
libxml2-2.4.19-6.legacy
lilo-21.4.4-14
lockdev-1.0.0-16
logrotate-3.6.4-1
losetup-2.11n-12.7.3.2.legacy
LPRng-3.8.9-4.1
lsof-4.51-2
lynx-2.8.4-18.3.legacy
mailcap-2.1.9-2
maildrop-1.3.0-1.7.0
mailfront-0.81-1
mailx-8.1.1-22
make-3.79.1-8
MAKEDEV-3.3-4
man-1.5j-7.7x.0
mbuffer-20011008-01
mc-4.5.55-12.legacy
mdadm-1.0.0-6
mingetty-1.00-1
minicom-2.00.0-3
mkbootdisk-1.4.3-1es2
mkinitrd-3.3.10-1
mktemp-1.5-14
mm-1.1.3-11
mod_auth_external-2.1.2-6
mod_perl-1.26-5
mod_ssl-2.8.12-8.legacy
modutils-2.4.18-3.7x
mount-2.11n-12.7.3.2.legacy
mouseconfig-4.25-1
mtools-3.9.8-2
mt-st-0.7-3
mutt-1.2.5.1-1
mysql-3.23.58-1.73.9.legacy
mysqlclient9-3.23.22-8
mysql-devel-3.23.58-1.73.9.legacy
mysql-server-3.23.58-1.73.9.legacy
ncompress-4.2.4-28
ncurses4-5.0-5
ncurses-5.2-26
netatalk-1.5.5-1es3
net-tools-1.60-4
newt-0.50.18-04es
ntp-4.1.1-1es1
nut-1.2.0-1es3
nut-client-1.2.0-1es3
oidentd-2.0.4-fr2
openldap-2.0.27-2.7.3es
openldap-clients-2.0.27-2.7.3es
openldap-servers-2.0.27-2.7.3es
openssh-3.7.1p1-1es4
openssh-clients-3.7.1p1-1es4
openssh-server-3.7.1p1-1es4
openssl-0.9.6b-39.10.legacy
pam-0.75-46.10.legacy.7x
passwd-0.67-1
patch-2.5.4-12
pciutils-2.1.9-2
pcre-3.9-2
perl-5.6.1-38.0.7.3.3.legacy
perl-Authen-PAM-0.12-1
perl-CGI-3.00-3
perl-CGI-FormMagick-0.89-09
perl-CGI-Persistent-0.22-4
perl-Class-ParamParser-1.0401-1
perl-Clone-0.13-1
perl-Convert-ASN1-0.07-10
perl-CPAN-1.59_54-38.0.7.3.3.legacy
perl-Crypt-Cracklib-0.01-1
perl-Crypt-SSLeay-0.35-15
perl-DBD-MySQL-1.2219-6
perl-DB_File-1.75-38.0.7.3.3.legacy
perl-DBI-1.21-1
perl-Digest-HMAC-1.01-1
perl-Digest-MD5-2.20-1
perl-Digest-Nilsimsa-0.06-1
perl-Digest-SHA1-2.01-1
perl-Error-0.14-01
perl-Filter-Handle-0.03-10
perl-FreezeThaw-0.41-10
perl-gettext-1.01-10
perl-HTML-Parser-3.26-2
perl-HTML-Tagset-3.03-14
perl-I18N-AcceptLanguage-0.03-1
perl-I18N-LangTags-0.27-1es3
perl-libwww-perl-5.63-9
perl-Mail-RFC822-Address-0.3-1
perl-Mail-SpamAssassin-2.53-1
perl-MailTools-1.58-1
perl-MIME-Base64-2.12-14
perl-NDBM_File-1.75-38.0.7.3.3.legacy
perl-Net-DNS-0.33-1
perl-Net-IPv4Addr-0.10-1
perl-Net-Ping-2.28-1
perl-Object-Persistence-0.92-2
perl-perl-ldap-0.22-10
perl-Proc-PID_File-0.05-1
perl-Quota-1.4.8-1
perl-suidperl-5.6.1-38.0.7.3.3.legacy
perl-Test-Harness-Straps-0.10-1
perl-Test-Inline-0.14-1
perl-Test-Simple-0.42-1
perl-Text-Iconv-1.2-1
perl-Text-Template-1.43-1es1
perl-Text-Wrapper-1.000-10
perl-Time-HiRes-1.20-14
perl-Unix-ConfigFile-0.06-1
perl-URI-1.17-16
perl-WWW-Automate-0.20-1
perl-XML-Parser-2.30-15
php-4.1.2-7.3.18.legacy.sme1
php-imap-4.1.2-7.3.18.legacy.sme1
php-ldap-4.1.2-7.3.18.legacy.sme1
php-mysql-4.1.2-7.3.18.legacy.sme1
pine-4.44-19.73.0
popt-1.6.4-7x.18
ppp-2.4.2b2-1es4
ppp-modules-2.4.2b2-1es4_2.4.20_18.7
pptpd-1.1.3-3es2
procmail-3.22-5
procps-2.0.7-12
proftpd-1.2.9-es3sme1
psmisc-20.2-3.73
pspell-0.12.2-8
pwdb-0.61.2-2
python-1.5.2-43.73
python2-2.2.2-11.7.3
qmail-1.03-08
qmailanalog-0.70-03
qmail-qfilter-1.5-1
quota-3.06-9.7
raidtools-1.00.2-1.3
rcs-5.7-15
readline-4.2a-4
rmt-0.4b27-3
rootfiles-7.2-1
rpm-4.0.4-7x.18
rpm-build-4.0.4-7x.18
rpm-perl-4.0.4-7x.18
rpm-python-4.0.4-7x.18
rp-pppoe-3.3-10.legacy
rsync-2.5.7-2.legacy.7x
safecat-1.9-1
samba-2.2.12-0.73.7.legacy.sme1
samba-client-2.2.12-0.73.7.legacy.sme1
samba-common-2.2.12-0.73.7.legacy.sme1
sash-3.4-11
screen-3.9.11-4.legacy
sed-3.02-11
setserial-2.17-5
setup-2.5.7-01es02
shadow-utils-20000902-9.7es1
shapecfg-2.2.12-8
sharutils-4.2.1-12.8.legacy
sh-utils-2.0.11-14
slang-1.4.5-2
slocate-2.7-1.7.3.legacy
SMEServer-6.0-04
sortspam-1.0.0-01
spamassassin-2.53-1
squid-2.4.STABLE7-0.73.3.legacy
sshell-3.0.0-02
stat-2.5-5
strace-4.4-9.1
stunnel-3.26-1.7.3es01
sudo-1.6.5p2-2.3.legacy
supervise-scripts-3.3-1es1
sysklogd-1.4.1-14.legacy.7x
syslinux-1.52-2
SysVinit-2.84-2
tai64nunix-0.70-03
tar-1.13.25-4.7.1
tcl-8.3.3-67
tcpdump-3.6.3-17.7.3.6.legacy
tcp_wrappers-7.6-19
tcsh-6.10-6
telnet-0.17-20.1.legacy
telnet-server-0.17-20.1.legacy
termcap-11.0.1-10
textutils-2.0.21-1
time-1.7-16
tmpwatch-2.8.3-1
tnef-1.1.1-1
traceroute-1.4a12-2
turba-1.2.5-1sme00
ucd-snmp-4.2.5-8.73.1
ucspi-tcp-0.88-03
unzip-5.50-31
usbutils-0.9-5
usermode-1.53-2
utempter-0.5.2-6.7.x.1.legacy
util-linux-2.11n-12.7.3.2.legacy
vim-common-6.1-18.7x.2.3.legacy
vim-enhanced-6.1-18.7x.2.3.legacy
vim-minimal-6.1-18.7x.2.3.legacy
vixie-cron-3.0.1-64
wget-1.8.2-4.73
which-2.13-3
whois-1.0.10-1
wireless-tools-23-2
words-2-18
xinetd-2.3.11-1.7x
yum-1.0.3-7sme06
zip-2.3-26.1.0.7.3.legacy
zlib-1.1.4-8.7x

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: remove all contribs
« Reply #2 on: June 14, 2006, 05:40:16 PM »
Quote from: "kruhm"
Am I the only one having trouble trying to remember what contribs I installed across my servers?

To list out all rpm's and when they were installed.
Quote

rpm -qa --queryformat '%{NAME} was installed on %{INSTALLTIME:date}\n'



"rpm -qa --last" will give you a sorted list.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: remove all contribs
« Reply #3 on: June 14, 2006, 05:42:18 PM »
Quote from: "kruhm"
Am I the only one having trouble trying to remember what contribs I installed across my servers?


I'd recommend that you use an i-bay to hold all add-on RPMs. You will have a record of what additional software is installed, and you will be able to rapidly re-install your contribs if you need to restore from backup.

Offline kruhm

  • *
  • 680
  • +0/-0
remove all contribs
« Reply #4 on: June 26, 2006, 04:23:41 PM »
Updated post above to include a procedure guide.

Offline raem

  • *
  • 3,972
  • +4/-0
remove all contribs
« Reply #5 on: July 10, 2006, 02:17:55 AM »
kruhm

What about programs installed without using a rpm ?
eg programname.tar.gz etc.
I realise it's not ideal practice, but it does work OK & I 'm sure many people have installed stuff that way.

Oh well, nothing like a good memory eh ?
...

Offline kruhm

  • *
  • 680
  • +0/-0
remove all contribs
« Reply #6 on: July 14, 2006, 06:59:15 AM »
>>What about programs installed without using a rpm ?
>>eg programname.tar.gz etc.
>>I realise it's not ideal practice, but it does work OK & I 'm sure many people have installed stuff that way.
Good point. I would think that "many" is a little far and that "some" would be more accurate. But who knows. Couple of thoughts:
-this focuses on the majority of installs/contribs via rpms (not the minority)
-this is to help pick up the contribs installed via script as well
-if you're installing stuff from source code, you probably don't need this guide. You either know what you're doing (pro/semi-pro) or had such trouble that you're not going to forget the contrib that was installed (amatur).
-the source is still in the dir/ibay you installed from (hopefully along with all the other contribs, rpms and script that were installed)

>>Oh well, nothing like a good memory eh ?
I found that a changelog works better than my memory. But nothing substitutes for a good memory.

Since this post has more than 7000 views without a single "thanks" or "i couldn't get this working" I can pretty much tell that it is working or else I've would have heard by now.

Offline perelandra

  • *
  • 62
  • +0/-0
remove all contribs
« Reply #7 on: August 01, 2006, 08:53:52 AM »
Quote
Since this post has more than 7000 views without a single "thanks" or "i couldn't get this working" I can pretty much tell that it is working or else I've would have heard by now.


Hi Kruhm,

I'll give it a try this week and will let you know about the (hopefully) sucessfull upgrade.
Greetings, Johannes

Offline perelandra

  • *
  • 62
  • +0/-0
remove all contribs
« Reply #8 on: August 04, 2006, 01:10:34 AM »
I did it! Your "diff-thingy" was very inspiring and I think I got the point of what it was about - though I did it my non-geek-way...

See:
http://forums.contribs.org/index.php?topic=30745.msg140843#msg140843

THANK YOU! (I think it was really time to say that!)

Have fun,
Johannes.
Greetings, Johannes

Offline groutley

  • ****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
remove all contribs
« Reply #9 on: September 05, 2006, 05:43:18 AM »
Hi,  
I am trying to follow this procedure..
and I note it does suggest it is for people that know what they are doing,  but there lies the issue..  
How can I upgrade to V7 without knowing what I am doing ?
I need to rely on a procedure like this !!
Hmmm   what a quandry !

Anyway..  Working thru this, and attempting to know what I am doing,  I am at a point where I dare not continue, with fear that I may abliterate my entire v6 which we are currently running on.
Sadly given the laptop Hardware I am running on, I have no facility of a Raid1 mirror backup as suggested..  So I must take a risk.
That said I have taken a desktop backup. which is becoming out of date  so we will lose email if I am forced to restore the backup.

Anyway..  I have created the rpms_installed and original files..
I run the 'diff -u rpms_original rpms_installed > rpms_diff'
and look at the output and become confused..
The procedure posted suggests that anything with a + has been added and a - has been removed.
but the diff seems to list everything in the installed with a '+'  and the original with a '-'
as suggested at the top of the output file rpms_diff..
--- rpms_original   Tue Sep  5 12:25:33 2006
+++ rpms_installed   Tue Sep  5 13:26:24 2006
 so for example  I have....
-anacron
+anacron
in the rpms_diff output ?

So if I were to continue with the next step..  won't I remove everything ?
I thought the rpms_diff was meant to only list the differences ??
appreciate your advice.

Offline kruhm

  • *
  • 680
  • +0/-0
remove all contribs
« Reply #10 on: September 07, 2006, 03:27:35 AM »
There is probably white space in the rpms_original. Try diff and ignore the white space.
Code: [Select]

diff -ub rpms_original rpms_installed > rpms_diff