Chroot » История » Версия 2
Андрей Волков, 2012-06-27 12:02
1 | 1 | Андрей Волков | h1. Chroot |
---|---|---|---|
2 | |||
3 | Проверка лишних библиотек: |
||
4 | <pre> |
||
5 | 2 | Андрей Волков | for NAME in /bin/* usr/bin/* /usr/local/bin/* /usr/local/libexec/* $(ldd /bin/* usr/bin/* /usr/local/bin/* /usr/local/libexec/* | grep = | awk '{print $1}' | sort | uniq| sed 's#^#/lib/#'); do ldd $NAME; done | grep = | awk '{print $1}' | sort | uniq > /1 |
6 | cd /lib |
||
7 | 1 | Андрей Волков | ls | grep -v -f /1 |
8 | rm /1 |
||
9 | </pre> |