我按照以下步骤在我的Debian中安装GHDL编译器,但是现在我需要卸载这个编译器来安装x64版本,但我不能。
By downloading the binaries and unpacking them manually:
$ wget http://ghdl.free.fr/site/uploads/Main/ghdl-i686-linux-latest.tar
$ sudo tar xvf ghdl-i686-linux-latest.tar(这将生成文件ghdl-0.29-i 686-pc-linux.tar.bz 2)
$ cd ghdl-0.29-i686-pc-linux
$ sudo tar -C / -jxvf ghdl-0.29-i686-pc-linux.tar.bz2(将文件复制到/usr/local/bin和/usr/local/lib)
我使用了dpkg -清除ghdl,但是如果我使用ghdl -版本,ghdl 0.29仍然在系统中。
我怎么才能把它移除?
发布于 2018-11-22 22:02:50
面对同样的情况,我就是这样做的:
转到tarball所在的位置,并使用以下命令
sudo tar -tf ghdl-0.29-i686-pc-linux.tar.bz2 | sed 's/^..//' | parallel sudo rm -rf说明:
tar -tf ghdl-0.29-i686-pc-linux.tar.bz2列出archive.tar中的所有文件sed 's/^..//'删除初始目录字符parallel sudo rm -rf删除匹配的文件这将在/usr/local中留下一些空目录,如果您想要清除它们,可以使用
sudo find /usr/local/* -type d -empty -deletehttps://stackoverflow.com/questions/40556430
复制相似问题