How do we know the size of CentOS repository before download it all? I'm sure there are many ways to do that by using yum / yast2 or other tool.
I'll try to achieve the same using "simple" commands presented in almost any Linux distribution. I let you here the script. It's not 100% perfect, in fact isn't, but I think is a nice starting point, feel free to improve it.
The script can be possible applied to RHEL, Oracle Linux and Fedora but I haven't test it against such distros.
Enjoy it!
I got the following results:
Summary [Feb, 9 2012] (Considering only the x86_64 architecture)
DISTRO SUMMARY http://mirror.centos.org/centos 5.7 : ~ 11 GB
DISTRO SUMMARY http://mirror.centos.org/centos 6.2 : ~ 10 GB
TOTAL SIZE: ~22 GB
No comments:
Post a Comment