dpkg -l | grep linux-image | egrep -v '3.2.0-4(3|4)-generic' | grep -v linux-image-generic | awk '{print $2}' | xargs apt-get remove -y
and the results
... 0 upgraded, 0 newly installed, 25 to remove and 0 not upgraded. After this operation, 7,807 MB disk space will be freed.
No comments:
Post a Comment