saubermann-common: check for common problems + junk

This commit is contained in:
neingeist 2016-09-11 18:27:39 +02:00
parent 0b50a9477d
commit 3bf13f2251
3 changed files with 14 additions and 2 deletions

8
saubermann-common Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
# check for common problems + junk
echo "== Dangling symlinks in /etc"
symlinks -r /etc | grep ^dangling | egrep -v 'blkid.tab|/var/log/dropbear'
echo "== Trashes"
du -s /home/*/.local/share/Trash | awk '{ if ($1 > 100000) { print } }'

View file

@ -1,5 +1,7 @@
#!/bin/sh
# check for things not installed via dpkg/apt
# check for things not installed via dpkg/apt and other junk
saubermann-common
echo "== Packages not in installed state"
dpkg -l | egrep -v "^(ii|Desired|\||\+)"

View file

@ -1,5 +1,7 @@
#!/bin/sh
# check for things not installed via RPM
# check for things not installed via RPM and other junk
saubermann-common
echo "== should be installed via RPM or pip install --user:"
for site_packages in /usr/lib/python2.7/site-packages/; do