linux ubuntu 安装/卸载/删除python-igraph方法

PpikachuP 2019-06-25

如何在Ubuntu 16.10上安装python-igraph?

首先使用以下命令更新系统:

sudo add-apt-repository ppa:igraph/ppa    # Add the Launchpad repository to apt
sudo apt-get update

以上命令将在您的系统上下载Ubuntu 16.10的软件包列表。这将更新最新版本的软件包及其依赖于您的系统的列表。

在上面的帮助下载最新的软件包列表后,可以运行安装过程。

如果您的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:
系统更新后,使用以下命令安装python-igraph:

sudo apt-get install python-igraph

在Ubuntu 16.10操作系统上安装软件包之前,以上命令将确认。如果您还没有以su身份登录,安装程序会询问root密码。安装完成后,您可以使用系统上的软件包。
如何从Ubuntu 16.10卸载/删除python-igraph?

现在我们将看到从Ubuntu 16.10卸载python-igraph命令。要卸载此软件包,您可以轻松使用apt命令,并从Linux操作系统中删除该软件包。

使用以下命令删除python-igraph命令:

sudo apt-get remove  python-igraph

以下命令用于删除python -igraph包及其依赖关系:

sudo apt-get remove --auto-remove python-igraph

这将删除系统中不再需要的python -igraph及其所有依赖软件包。

完全删除所有配置文件的python-igraph:

应该谨慎使用以下命令,因为它会删除所有配置文件和数据:

sudo apt-get purge python-igraph

或者也可以使用以下命令:

sudo apt-get purge --auto-remove python-igraph

以上命令将删除与python-igraph包关联的所有配置文件和数据。您无法恢复删除数据,因此请谨慎使用此命令。
参考文章:http://www.chenxm.cc/post/447...

相关推荐