5-1 PMS系统和软件安装的介绍

  • PMS - Package Management System - 包管理系统
  • 解决工具依赖问题
  • apt install
  • apt-get install
  • apt-cache
  • aptitude(已淘汰)

5-2 安装、更新、卸载

  • apt -h
  • 更新 sudo apt update
  • 升级 sudo apt upgrade
  • 卸载 sudo apt remove oneko

5-3 其他发行版本?

  • server版本配置镜像源
  • sudo vim /etc/apt/source.list
  • http://archive.ubuntu.com/ubuntu/
  • 修改成国内阿里云库:
  • http://mirrors.aliyun.com/ubuntu/

5-4 安装第三方软件案例:例如github开源软件的指导

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# thefuck
# 1.安装依赖
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
pip3 -H install thefuck --user

# 2.配置文件
vim ~/.bashrc

# 3.末尾添加:eval "$(thefuck --alias)"
# :wq

# 4.更新
source ~/.bashrc