GNU 维护人员通常对这样的事情非常满意:如果您make-3.81从源代码构建和安装,它将/usr/local/默认进入(保留makein的当前版本/usr/bin),并且您应该能够通过sudo make uninstall之后从源目录运行来完全删除它.
为了显示:
steeldriver@xenial-vm:~/src/make-3.81$ ./configure
steeldriver@xenial-vm:~/src/make-3.81$ make
steeldriver@xenial-vm:~/src/make-3.81$ sudo make install
然后检查版本:
steeldriver@xenial-vm:~/src/make-3.81$ hash -r make
steeldriver@xenial-vm:~/src/make-3.81$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-unknown-linux-gnu
现在卸载它并再次检查:
steeldriver@xenial-vm:~/src/make-3.81$ sudo make uninstall
steeldriver@xenial-vm:~/src/make-3.81$ hash -r make
steeldriver@xenial-vm:~/src/make-3.81$ make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
GNU 维护人员通常对这样的事情非常满意:如果您
make-3.81
从源代码构建和安装,它将/usr/local/
默认进入(保留make
in的当前版本/usr/bin
),并且您应该能够通过sudo make uninstall
之后从源目录运行来完全删除它.为了显示:
然后检查版本:
现在卸载它并再次检查:
首先安装make 3.81版本。这将替换现有版本。然后重命名可执行文件。然后安装4.1版本。现在你可以使用旧版本了。