User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dev:tricks:linux [2017/10/12 22:49]
hackerzhou [Remove old kernel image]
dev:tricks:linux [2017/10/12 23:07] (current)
hackerzhou [Remove old kernel image]
Line 691: Line 691:
 <code bash> <code bash>
 kernelver=$(uname -r | sed -r '​s/​-[a-z]+//'​) kernelver=$(uname -r | sed -r '​s/​-[a-z]+//'​)
-dpkg -l linux-{image,​headers}-"​[0-9]*"​ | awk '/​ii/​{print $2}' | grep -ve $kernelver | xargs dpkg --force-all -P+dpkg -l linux-{image,​headers,​image-extra}-"​[0-9]*"​ | awk '/​ii/​{print $2}' | grep -ve $kernelver | xargs dpkg --force-all -P
 </​code>​ </​code>​
 ==== Install Lyx ==== ==== Install Lyx ====
dev/tricks/linux.txt ยท Last modified: 2017/10/12 23:07 by hackerzhou