linux ubuntu 安裝/卸載/刪除python-igraph方法
如何在Ubuntu 16.10上安裝python-igraph?
首先使用以下命令更新系統(tǒng):
sudo add-apt-repository ppa:igraph/ppa # Add the Launchpad repository to apt
sudo apt-get update
以上命令將在您的系統(tǒng)上下載Ubuntu 16.10的軟件包列表。這將更新最新版本的軟件包及其依賴于您的系統(tǒng)的列表。
在上面的幫助下載最新的軟件包列表后,可以運(yùn)行安裝過程。
如果您的compter中沒有安裝python-igraph,那么命令'dpkg -L python-igraph'將給出followin錯誤。
deepak@deepak-VirtualBox:~$ dpkg -L python-igraph
dpkg-query: package 'python-igraph' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$
安裝python -igraph:
系統(tǒng)更新后,使用以下命令安裝python-igraph:
sudo apt-get install python-igraph
在Ubuntu 16.10操作系統(tǒng)上安裝軟件包之前,以上命令將確認(rèn)。如果您還沒有以su身份登錄,安裝程序會詢問root密碼。安裝完成后,您可以使用系統(tǒng)上的軟件包。
如何從Ubuntu 16.10卸載/刪除python-igraph?
現(xiàn)在我們將看到從Ubuntu 16.10卸載python-igraph命令。要卸載此軟件包,您可以輕松使用apt命令,并從Linux操作系統(tǒng)中刪除該軟件包。
使用以下命令刪除python-igraph命令:
sudo apt-get remove python-igraph
以下命令用于刪除python -igraph包及其依賴關(guān)系:
sudo apt-get remove --auto-remove python-igraph
這將刪除系統(tǒng)中不再需要的python -igraph及其所有依賴軟件包。
完全刪除所有配置文件的python-igraph:
應(yīng)該謹(jǐn)慎使用以下命令,因為它會刪除所有配置文件和數(shù)據(jù):
sudo apt-get purge python-igraph
或者也可以使用以下命令:
sudo apt-get purge --auto-remove python-igraph
以上命令將刪除與python-igraph包關(guān)聯(lián)的所有配置文件和數(shù)據(jù)。您無法恢復(fù)刪除數(shù)據(jù),因此請謹(jǐn)慎使用此命令。