Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Suggestion at least for Redhat

Click here to go to the original topic
Goto page 1, 2  Next
 
       Linode.com Forum Forum Index -> Feature Request/Bug Report
Author Message
ennui



Joined: 03 Sep 2003
Posts: 2

Posted: Sun Sep 07, 2003 10:55 am    Post subject: Suggestion at least for Redhat  

It would be nice if redhat cds or iso images were mountable from something locally available, I've burnt lots of transfer copying rpms not in the "small" image.

Thanks.
Back to top  
bdi



Joined: 14 Aug 2003
Posts: 15

Posted: Sun Sep 07, 2003 11:58 am    Post subject:  

I too have used a nice sum of transfer just getting some extra packages not in the RH small release, I think this feature would be great
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2392
Location: Galloway, NJ

Posted: Sun Sep 07, 2003 12:06 pm    Post subject:  

Thanks for the suggestion.

We've reserved the last ubd device in your Linode config for this purpose (/dev/ubdh) -- it will contain a read-only filesystem that's universally mountable (ro) by any Linode and will contain the entire package contents of the distro's we provide.

I still have to figure out some disk usage reqs, and there is some testing I need to perform to make sure this will work correctly, but I thought you'd be happy to know something like this has been planned from the start.

Thanks again,
-Chris
Back to top  
bjohnson



Joined: 11 Sep 2003
Posts: 26

Posted: Fri Sep 12, 2003 12:26 am    Post subject: unneeded packages in RedHat 9 distro (small)  

I'm new to UML, so tell me if I'm wrong here.... I removed the following packages from my root_fs image, because it seems that they are totally useless for a UML booted image. Perhaps if they are truly useless, it would be wise to remove them from the distro image.

eject-2.0.13-2
ethtool-1.6-5
fbset-2.1-13
kernel-smp-2.4.20-8
kudzu-0.99.99-1
lilo-21.4.4-22
mkbootdisk-1.5.1-1
parted-1.6.3-11
raidtools-1.00.3-2
redhat-config-mouse-1.0.5-1
syslinux-2.00-4

Also, it seems that these packages are just as useless, however apt will throw a fit about dependencies if they are missing. The kernel in particular chews up a chunk of disk space. My saved a little space by running "rpm -q --filesbypkg" on each package then truncating the files in the package (cp /dev/null /some/file). I know that "rpm -V" won't be happy, but I'm not too concerned about that.

kernel-2.4.20-8
lvm-1.0.3-12
mkinitrd-3.4.42-1
modutils-2.4.22-8


If anyone is interested in how to strip down the small image to something just enough to build with (no X or fancy stuff), I can show you how to save about 250 meg in your disk image :)
Back to top  
kenny



Joined: 27 Jun 2003
Posts: 66

Posted: Fri Sep 12, 2003 9:58 am    Post subject: Re: unneeded packages in RedHat 9 distro (small)  

bjohnson wrote: I'm new to UML, so tell me if I'm wrong here.... I removed the following packages from my root_fs image, because it seems that they are totally useless...

Yep, I don't have any of the package you listed. The first thing I always do after a "minimal" redhat installation is remove one third of the packages. I do remember removing a lot more then what you had listed, however I believe Chris has changed the image since I've used it. Mail me or post a list of rpms if you want and we can compare :)

kenny
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2392
Location: Galloway, NJ

Posted: Fri Sep 12, 2003 10:47 am    Post subject:  

There's also like 140 MB of locale-specific files that I've had success removing in Red Hat and others, but left them there "just in case".

-Chris
Back to top  
bjohnson



Joined: 11 Sep 2003
Posts: 26

Posted: Fri Sep 12, 2003 2:04 pm    Post subject:  

These are the RPMS that I deleted to make a "minimal" system :) Yeah, there's a lot of them and you can't do much without.

4Suite-0.11.1-13
acl-2.2.3-1
alchemist-1.0.26-1
aspell-0.33.7.1-21
at-3.1.8-33
audiofile-0.2.3-6
authconfig-4.3.4-1
autofs-3.1.7-36
bonobo-activation-2.2.0-4
bind-9.2.1-16
bind-utils-9.2.1-16
caching-nameserver-7.2-7
chkfontpath-1.9.7-1
cpio-2.5-3
curl-7.9.8-5
desktop-file-utils-0.3-5
devlabel-0.26.08-3
dos2unix-3.1-15
dosfstools-2.8-6
dump-0.4b28-7
esound-0.2.28-4
fam-2.6.8-9
fetchmail-6.2.0-3
finger-0.17-16
finger-server-0.17-16
fontconfig-2.1-9
freetype-2.1.3-6
ftp-0.17-17
gd-1.8.4-11
gdk-pixbuf-0.18.0-7
groff-1.18.1-20
gtk2-2.2.1-4
gtk+-1.2.10-25
hdparm-5.2-4
hesiod-3.0.2-26
httpd-2.0.40-21.3
httpd-manual-2.0.40-21.3
imap-2001a-18
indexhtml-9-3
jfsutils-1.0.17-6
jwhois-3.2.1-1
kbd-1.08-4
krbafs-1.1.1-9
lftp-2.6.3-3
libart_lgpl-2.3.11-2
libbonobo-2.2.0-1
libcap-1.10-15
libglade2-2.0.1-3
libjpeg-6b-26
libmng-1.0.4-3
libpng-1.2.2-16
libtiff-3.5.7-11
libungif-4.1.0-15
libwnck-2.2.1-2
libwvstreams-3.70-8
libxml2-2.5.4-1
libxslt-1.0.27-3
libIDL-0.8.0-7
linc-1.0.1-1
lokkit-0.50-22
lynx-2.8.5-11
mailx-8.1.1-28
man-1.5k-6
man-pages-1.53-3
minicom-2.00.0-12
mod_auth_mysql-1.11-12
mod_python-3.0.1-3
mod_ssl-2.0.40-21.3
mailcap-2.1.13-1
mt-st-0.7-10
mtools-3.9.8-7
mtr-0.52-2
mutt-1.4-10
mysql-3.23.56-1.9
mysql-server-3.23.56-1.9
ncftp-3.1.5-4
netconfig-0.8.14-2
nfs-utils-1.0.1-2.9
pam_krb5-1.60-1
pam_smb-1.1.6-7
pango-1.2.1-3
perl-CGI-2.81-88
perl-DB_File-1.804-88
perl-DBD-MySQL-2.1021-3
perl-DBD-Pg-1.21-2
php-odbc-4.2.2-17.2
php-ldap-4.2.2-17.2
php-4.2.2-17.2
php-pgsql-4.2.2-17.2
php-mysql-4.2.2-17.2
php-imap-4.2.2-17.2
pine-4.44-18
pinfo-0.6.6-4
portmap-4.0-54
postgresql-7.3.2-3
postgresql-server-7.3.2-3
postgresql-libs-7.3.2-3
postgresql-odbc-7.2.5-1
ppp-2.4.1-10
procmail-3.22-9
pspell-0.12.2-16
pygtk2-1.99.14-4
pygtk2-libglade-1.99.14-4
pyorbit-1.99.3-5
python-optik-1.4-2
qt-3.1.1-6
quota-3.06-9
rdate-1.3-2
rdist-6.1.5-26
redhat-config-nfs-1.0.4-5
redhat-config-securitylevel-1.1.1-3
redhat-switch-mail-0.5.17-1
reiserfs-utils-3.6.4-5
rmt-0.4b28-7
rsh-0.17-14
rsh-server-0.17-14
sendmail-8.12.8-5.90
sendmail-cf-8.12.8-5.90
setuptool-1.12-1
slocate-2.6-8
startup-notification-0.5-1
stunnel-4.04-3
sudo-1.6.6-3
switchdesk-3.9.8-15
talk-0.17-20
tcpdump-3.7.2-1.9.1
tcsh-6.12-4
telnet-0.17-25
ttmkfdir-3.0.9-1
unix2dos-2.2-19
unixODBC-2.2.3-6
up2date-3.1.23-1
usbutils-0.9-10
usermode-gtk-1.67-2
vconfig-1.6-2
vnc-server-3.3.3r2-47
vsftpd-1.1.3-8
w3m-0.3.2.2-5
webalizer-2.01_10-11
xinitrc-3.32-1
Glide3-20010520-25
GConf2-2.2.0-1
ImageMagick-5.4.7-10
ORBit2-2.6.0-2
PyXML-0.7.1-9
XFree86-4.3.0-2
XFree86-base-fonts-4.3.0-2
XFree86-font-utils-4.3.0-2
XFree86-libs-4.3.0-2
XFree86-libs-data-4.3.0-2
XFree86-xauth-4.3.0-2
XFree86-xfs-4.3.0-2
XFree86-Mesa-libGLU-4.3.0-2
Back to top  
bjohnson



Joined: 11 Sep 2003
Posts: 26

Posted: Fri Sep 12, 2003 2:17 pm    Post subject:  

These are the RPMS that I currently have installed (a much smaller list).

The remaining RPMS basically fall into three groups:
1) I added them to suit the purpose of this disk image (ie. postfix, procmail, gcc)
2) They are things that are not really minimal, but I find extremely useful (ie. wget, lsof)
3) Some RPM have dependencies that I can't break without really torquing off apt (ie. setup, libuser)


rpm -qa | sort
anacron-2.3-25
apt-0.5.5cnc6-fr1
ash-0.3.8-8
atk-1.2.0-2
attr-2.2.0-1
basesystem-8.0-2
bash-2.05b-20.1
binutils-2.13.90.0.18-9
bzip2-1.0.2-8
bzip2-libs-1.0.2-8
chkconfig-1.3.8-1
comps-9-0.20030313
coreutils-4.5.3-19
cpp-3.2.2-5
cracklib-2.7-21
cracklib-dicts-2.7-21
crontabs-1.10-5
cyrus-sasl-2.1.10-4
cyrus-sasl-md5-2.1.10-4
cyrus-sasl-plain-2.1.10-4
db4-4.0.14-20
dev-3.3.2-5
dhclient-3.0pl1-23
diffutils-2.8.1-6
e2fsprogs-1.32-6
ed-0.2-31
elfutils-0.76-3
elfutils-libelf-0.76-3
expat-1.95.5-2
file-3.39-9
filesystem-2.2.1-3
findutils-4.1.7-9
gawk-3.1.1-9
gcc-3.2.2-5
gdbm-1.8.0-20
glib-1.2.10-10
glib2-2.2.1-1
glibc-2.3.2-27.9
glibc-common-2.3.2-27.9
glibc-devel-2.3.2-27.9
glibc-kernheaders-2.4-8.10
gmp-4.1.2-2
gnupg-1.2.1-4
gpm-1.19.3-27
grep-2.5.1-7
gzip-1.3.3-9
hwdata-0.75-1
info-4.3-5
initscripts-7.14-1
iproute-2.4.7-7
iptables-1.2.7a-2
iputils-20020927-2
kernel-2.4.20-18.9
krb5-libs-1.2.7-14
less-378-7
libacl-2.2.3-1
libattr-2.2.0-1
libgcc-3.2.2-5
libstdc++-3.2.2-5
libtermcap-2.0.8-35
libtool-libs-1.4.3-5
libuser-0.51.7-1
lockdev-1.0.0-23
logrotate-3.6.8-1
losetup-2.11y-9
lsof-4.63-4
lvm-1.0.3-12
m4-1.4.1-13
make-3.79.1-17
MAKEDEV-3.3.2-5
mingetty-1.01-1
mkinitrd-3.4.42-1
mktemp-1.5-18
modutils-2.4.22-8
mount-2.11y-9
ncurses-5.3-4
net-tools-1.60-12
newt-0.51.4-1
nscd-2.3.2-27.9
ntsysv-1.3.8-1
openldap-2.0.27-8
openssh-3.5p1-6.9
openssh-clients-3.5p1-6.9
openssh-server-3.5p1-6.9
openssl-0.9.7a-5
pam-0.75-48
passwd-0.68-3
pcre-3.9-10
perl-5.8.0-88
perl-DBI-1.32-5
perl-Filter-1.29-3
popt-1.8-0.69
postfix-1.1.12-1
procmail-3.22-9
procps-2.0.13-1
psmisc-21.2-4
pyOpenSSL-0.5.1-8
python-2.2.2-26
pyxf86config-0.3.5-1
readline-4.3-5
redhat-release-9-3
rhnlib-1.0-4
rhpl-0.93.4-1
rootfiles-7.2-6
rpm-4.2-0.69
rpm-python-4.2-0.69
rsync-2.5.5-4
sed-4.0.5-1
setup-2.5.25-1
shadow-utils-4.0.3-6
slang-1.4.5-16
sysklogd-1.4.1-12
SysVinit-2.84-13
tar-1.13.25-11
tcp_wrappers-7.6-34
termcap-11.0.1-16
time-1.7-21
tmpwatch-2.8.4-5
traceroute-1.4a12-9
unzip-5.50-33
usermode-1.67-2
util-linux-2.11y-9
vim-common-6.1-29
vim-enhanced-6.1-29
vixie-cron-3.0.1-74
wget-1.8.2-9
which-2.14-5
words-2-21
XFree86-Mesa-libGLU-4.3.0-2
xinetd-2.3.11-1.9.0
zip-2.3-16
zlib-1.1.4-8
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2392
Location: Galloway, NJ

Posted: Fri Sep 12, 2003 2:43 pm    Post subject:  

Are you guys doing a big ol' "rpm -e <big_ass_list>" or "apt-get remove <big_ass_list>" with no major complaints about dependencies?

-Chris
Back to top  
inkblot



Joined: 08 Sep 2003
Posts: 62
Location: Bucharest

Posted: Fri Sep 12, 2003 2:47 pm    Post subject:  

caker wrote: Are you guys doing a big ol' "rpm -e <big_ass_list>" or "apt-get remove <big_ass_list>" with no major complaints about dependencies?

That's basically what I did. My list of Debian packages to remove is in a different thread, though.

-Nate
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2392
Location: Galloway, NJ

Posted: Fri Sep 12, 2003 3:03 pm    Post subject:  

Ok, cool. I mentioned apt-get because it's installed on the RH distros.

-Chris
Back to top  
bjohnson



Joined: 11 Sep 2003
Posts: 26

Posted: Fri Sep 12, 2003 3:24 pm    Post subject:  

caker wrote: Are you guys doing a big ol' "rpm -e <big_ass_list>" or "apt-get remove <big_ass_list>" with no major complaints about dependencies?

-Chris

I was removing groups of packages, but if you take the big list of packages + the short list from my first post (minus the 4 packages that have dependency problems) and run "rpm -e <big_ass_list>" they should remove without complaint. Maybe I'll build another image and give this a try :)

For the 4 packages that I don't need, but caused dependency problems, I ran something similar to:

for file in `rpm -q --filesbypkg kernel modutils lvm | sed -e 's@.* /@/@' | grep -v shm`; do
cp /dev/null $file
done

This will of course cause RPM file integrity checks on these packages to fail, but who cares since you're not using them anyway.

My root fs is right around ~377 Meg, and I still have things that I need installed (like postfix, gcc (big!), and others)
Back to top  
kenny



Joined: 27 Jun 2003
Posts: 66

Posted: Sat Sep 13, 2003 1:16 am    Post subject:  

bjohnson wrote: These are the RPMS that I deleted to make a "minimal" system :) Yeah, there's a lot of them and you can't do much without.

4Suite-0.11.1-13
...
XFree86-Mesa-libGLU-4.3.0-2
That's a big list. Is that the small redhat dist? I don't remember having all of those packages on mine, but I'm pretty sure the dist has changed since then. How can you remember options to ls without the magpages? :)

bjohnson wrote: These are the RPMS that I currently have installed (a much smaller list).
bjohnson wrote:
For the 4 packages that I don't need, but caused dependency problems, I ran something similar to:

Sounds like you've probably already removed the files of these packages, but are any of the below needed in an uml environment?

gpm
hwdata
kernel
lockdev
mkinitrd
modutils
pyxf86config
XFree86-Mesa-libGLU

Looks like you've done just as good as I could on cutting rpms out (if not better). I really like the part about uninstalling sendmail :twisted: .

caker wrote: Are you guys doing a big ol' "rpm -e <big_ass_list>" or "apt-get remove <big_ass_list>" with no major complaints about dependencies?

Code:
echo >> ~/.bash_profile alias rpm='rpm --nodeps'

hehe, I don't even know if I got the syntax correct on that. If I know I don't need a package (see above list), I just rpm -e --nodeps it.

kenny
ps: rpm -e --nodeps apt
Back to top  
inkblot



Joined: 08 Sep 2003
Posts: 62
Location: Bucharest

Posted: Sat Sep 13, 2003 1:29 am    Post subject:  

kenny wrote: How can you remember options to ls without the magpages?

Habit. (There have only been minor changes and additions to ls in the last 30 years)
Shell aliases
Man pages on other machines on which I'm not paying for storage.
Back to top  
bjohnson



Joined: 11 Sep 2003
Posts: 26

Posted: Sat Sep 13, 2003 2:37 am    Post subject:  

kenny wrote: bjohnson wrote: These are the RPMS that I deleted to make a "minimal" system :) Yeah, there's a lot of them and you can't do much without.

4Suite-0.11.1-13
...
XFree86-Mesa-libGLU-4.3.0-2
That's a big list. Is that the small redhat dist? I don't remember having all of those packages on mine, but I'm pretty sure the dist has changed since then. How can you remember options to ls without the magpages? :)

Yes, this is the small redhat dist :)

What? You don't have your man pages memorized?

kenny wrote:
Sounds like you've probably already removed the files of these packages, but are any of the below needed in an uml environment?

gpm
hwdata
kernel
lockdev
mkinitrd
modutils
pyxf86config
XFree86-Mesa-libGLU

Oops... Missed the XFree86-Mesa-libGLU package and the hwdata package.

I intentionally left in lockdev in case a shell script needed it.

As far as needed... no, none of them are required to operate.

I left in the other packages because they all broke dependencies and apt freaks out when you have broken dependencies. I did, however, truncate the files associated with a few of the packages.
kenny wrote:
ps: rpm -e --nodeps apt
I'm almost to that point >:) Does anyone know if yum will work around broken dependencies? Or is there an option to apt to tell it to ignore these problems?
Back to top  
 
       Linode.com Forum Forum Index -> Feature Request/Bug Report Goto page 1, 2  Next
Page 1 of 2