关于linux:kail-rolling-升级

41次阅读

共计 970 个字符,预计需要花费 3 分钟才能阅读完成。

批改源文件

vim /etc/apt/sources.list


#aliyun 阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

# ustc 中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

# 清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

# kali 官网源
deb http://http.kali.org/kali kali-rolling main non-free contrib 
deb-src http://http.kali.org/kali kali-rolling main non-free contrib 

# 默认的,能够正文掉不必管
#deb http://security.kali.org/kali-security kali-rolling/updates main contrib non-free
#deb-src http://security.kali.org/kali-security kali-rolling/updates main contrib non-free

拉取最新包并更新软件

apt-get update & apt-get upgrade

更新零碎

apt-get dist-upgrade

清理安装包

# 删除所有已下载的包文件
apt-get clean
# 删除已下载的旧包文件
apt-get autoclean
# 卸载所有主动装置且不再应用的软件包
apt-get autoremove

 查看零碎版本  命令:lsb_release -a
查看内核版本  命令:uname -r

正文完
 0