linux上的软件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/happy_teemo/article/details/80026554

Linux的软件会集中存放在一个地方,叫做软件仓库,英语是repository

用户选择软件仓库,因为基本上各个软件仓库中的软件都是一样的。

/etc/apt/sources.list

这个文件是系统文件,只能被root用户修改。所以我们有两种选择:

sudo nano /etc/apt/sources.list 暂时性地成为root,用nano来编辑此文件
sudo su 先永久成为root
nano /etc/apt/sources.list 再用nano来编辑此文件

apt-get update命令:更新可安装的软件列表。
apt-cache search命令:在软件列表里搜索可用软件。
apt-get install命令:安装软件。
apt-get autoremove命令:卸载软件。
apt-get upgrade命令:升级所有已安装软件。

猜你喜欢

转载自blog.csdn.net/happy_teemo/article/details/80026554