• 软件源

kali linux 的软件源文件在:

/etc/apt/sources.list

可以用leafpad打开,在终端中键入:

leafpad /etc/apt/sources.list

在这个文件中#是注释,原码是kali官方的软件源,更换国内软件源的话,在速度上可能会快一些。但是我自己换了几个国内的源,都不好用,要不就是不能定位软件包,要不就是什么仓库问题。所以我建议还是用官方源吧,虽然也遇到一些问题。下面我放上主流国内的源。

用法:直接复制到source.list 里面,记得把官方源前面加#,用那个源,就把它前面的#去掉。

# 

# deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot i386 LIVE/INSTALL Binary 20150811-09:06]/ sana contrib main non-free

#deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot i386 LIVE/INSTALL Binary 20150811-09:06]/ sana contrib main non-free

# Line commented out by installer because it failed to verify:
#deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
# Line commented out by installer because it failed to verify:
#deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free

#中科大
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.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/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
#163
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
#东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#官方源
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

 

  • 软件更新

一般的一次整体更新软件需要以下几步:

apt-get       update #更新源

apt-get        upgrade #更新已经安装的软件包

apt-get         dist-upgrade #升级系统

apt-get         clean #清除

几种常用的操作

删除下载的软件包

apt-get         clean #清除 /var/cache/apt/archives目录

安装本地软件包

dpkg          -i                package_name.deb #安装本地软件包,不解决依赖关系

移除本地软件包

dpkg          -r         package #删除软件包

dpkg         -P             #删除软件包及配置文件

 

参考:https://blog.csdn.net/ha0zi1/article/details/56856370

 

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐