How to clean YUM cache in CentOS / RHEL
[root@oracle ]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 20G 3.7G 84% /
tmpfs 7.8G 152K 7.8G 1% /dev/shm
/dev/sda1 190M 124M 52M 71% /boot
/dev/sda4 4.7G 31M 4.4G 1% /tmp
/dev/sda5 873G 711G 118G 86% /u01
[root@oracle]cd /var/cache
[root@oracle cache]# du -sh *
4.0K abrt-di
16K cups
1.4M fontconfig
4.0K foomatic
12K gdm
1.3M hald
4.0K ipmimonitoringsdrcache
4.0K ipmiseld
4.0K krb5rcache
92K ldconfig
8.0K libvirt
3.6M man
4.0K mod_proxy
4.0K mod_ssl
116K PackageKit
4.0K powertop
12K rpcbind
12K tomcat6
6.8G yum
[root@oracle]# yum clean all
Loaded plugins: refresh-packagekit, security, ulninfo
Cleaning repos: epel mysql-connectors-community mysql-tools-community mysql57-community public_ol6_UEKR4 public_ol6_addons public_ol6_latest
Cleaning up Everything
[root@oracle yum]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 13G 11G 55% /
tmpfs 7.8G 152K 7.8G 1% /dev/shm
/dev/sda1 190M 124M 52M 71% /boot
/dev/sda4 4.7G 31M 4.4G 1% /tmp
/dev/sda5 873G 711G 118G 86% /u01
[root@oracle ]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 20G 3.7G 84% /
tmpfs 7.8G 152K 7.8G 1% /dev/shm
/dev/sda1 190M 124M 52M 71% /boot
/dev/sda4 4.7G 31M 4.4G 1% /tmp
/dev/sda5 873G 711G 118G 86% /u01
[root@oracle]cd /var/cache
[root@oracle cache]# du -sh *
4.0K abrt-di
16K cups
1.4M fontconfig
4.0K foomatic
12K gdm
1.3M hald
4.0K ipmimonitoringsdrcache
4.0K ipmiseld
4.0K krb5rcache
92K ldconfig
8.0K libvirt
3.6M man
4.0K mod_proxy
4.0K mod_ssl
116K PackageKit
4.0K powertop
12K rpcbind
12K tomcat6
6.8G yum
[root@oracle]# yum clean all
Loaded plugins: refresh-packagekit, security, ulninfo
Cleaning repos: epel mysql-connectors-community mysql-tools-community mysql57-community public_ol6_UEKR4 public_ol6_addons public_ol6_latest
Cleaning up Everything
[root@oracle yum]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 13G 11G 55% /
tmpfs 7.8G 152K 7.8G 1% /dev/shm
/dev/sda1 190M 124M 52M 71% /boot
/dev/sda4 4.7G 31M 4.4G 1% /tmp
/dev/sda5 873G 711G 118G 86% /u01
No comments:
Post a Comment