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