导航

Debian

Posted on 2025-12-05 13:11  xbox360  阅读(16)  评论(0)    收藏  举报

卸载
使用 apt-get remove 命令可以卸载软件及其依赖项
apt-get purge 命令不仅卸载软件及其依赖项,还会删除软件的相关配置文件。 如果需要彻底清理软件,可以使用此命令。
在卸载软件时,有时会留下一些不再需要的依赖包。 使用 apt-get autoremove 命令可以自动清理这些依赖。
随着时间的推移,系统会积累许多旧版本的软件包。 使用 apt-get autoclean 命令可以清理这些旧版本的软件包,节省磁盘空间。
对于不熟悉命令行的用户,可以使用Debian的图形界面卸载软件。 在软件中心搜索要卸载的软件,选中后点击“卸载”即可。

Type the following in terminal commands to remove libreoffice:

sudo apt-get remove –purge ‘libreoffice*’ 
sudo apt-get autoremove 
sudo apt-get clean 

The SUDO command stands for Super User DO which gives root authorization to your currently logged in account.

运行下面的 apt install 命令在您的 Debian 11 系统上安装 NodeJS 和 NPM。

$ sudo apt install nodejs npm -y
运行以下命令以验证 NodeJS 和 NPM 是否已正确安装。

$ node -v
v12.22.5
$ npm -v
7.5.2

sudo apt-get update

sudo apt-get install ca-certificates curl

curl -fsSL http://mirrors.tencentyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] http://mirrors.tencentyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

sudo apt -y install docker-ce docker-ce-cli containerd.io

sudo systemctl daemon-reload

sudo systemctl restart docker