ZipperZapper
Verified User
- Joined
- Nov 30, 2015
- Messages
- 142
I ran into a disk usage problem with my DirectAdmin server yesterday, so started to investigate where it came from with this command:
Turned out my biggest problem had nothing to do with something related to DirectAdmin, but I did find something interesting that does. I found out MariaDB is using quite some space in the /usr/local area with all sorts of versions of the program:
Why are all these versions in there? Can I safely remove all but the most recent one?
Code:
du -h / | grep '^.*[0-9]G' | sort -n
Turned out my biggest problem had nothing to do with something related to DirectAdmin, but I did find something interesting that does. I found out MariaDB is using quite some space in the /usr/local area with all sorts of versions of the program:
1,1G /usr/local/mariadb-5.5.46-linux-x86_64
1,4G /usr/local/mariadb-10.0.22-linux-x86_64
1,5G /usr/local/mariadb-10.1.9-linux-glibc_214-x86_64
1,6G /usr/local/mariadb-10.1.10-linux-glibc_214-x86_64
1,6G /usr/local/mariadb-10.1.11-linux-glibc_214-x86_64
1,6G /usr/local/mariadb-10.1.12-linux-glibc_214-x86_64
1,6G /usr/local/mariadb-10.1.13-linux-glibc_214-x86_64
1,6G /usr/local/mariadb-10.1.14-linux-glibc_214-x86_64
Why are all these versions in there? Can I safely remove all but the most recent one?