kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

Configuring apt domestic source

Kali comes because the source is abroad, often because of network problems, but can not install the update packages quit. And foreign source is very slow. Therefore, we direct the use of domestic sources, quickly and easily.

Right-click on the desktop terminal's quit button to select open in terminal to open the terminal.

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

root@xuegod53:~# vim /etc/apt/sources.list

The plus sign in front of line # 7, annotated:

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

Insert Ali cloud kali source:

deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib

Note: Copy the contents of the above two lines, and then press the mouse wheel, you can paste it into a document.

The new package using apt source for the latest list of packages

root@xuegod53:~# apt update

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

Ali has been found that using a cloud kali source.

Extended: kali apt sources

Kali Rolling: is instantly updated version of Kali, Kali as long as there is a newer, updated packages will be placed in Kali Rolling in for users

Download. It provides a stable updated version for the user, and it will update with the latest installation package. This is our most popular source.

There are three types of package under the Kali Rolling: main, non-free and contrib. Kali apt source package Type Description:

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

Note: DFSG is Debian Free Software Guidelines (Debian Free Software Guidelines), this policy generally includes the re-issue of freedom of the source code, the prohibition of discrimination against people who quit the organization, etc.

rolling [rəʊlɪŋ] roll of Mai; contrib contributed software; contribution; general release dists area

We look apt-Manual source, direct access to: https: //mirrors.aliyun.com/kali/ see the software packages in the dists directory

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

Ring direct access https://mirrors.aliyun.com/kali/dists/kali-rolling/ can see three types of packages

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

apt update, and the difference apt upgrade apt dist-upgrade of

1、root@xuegod53:~# apt update

Note: apt update action is the latest list of packages from source definition file /etc/apt/sources.list acquired.

That run apt update does not update the software, but the following is equivalent to windows to check for updates, get the status of the software.

root @ xuegod53: ~ # apt update # execute this command, you can view the list of updates

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

Https://mirrors.aliyun.com/kali/dists/kali-rolling/ will download the package list in this InRelease

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

The InRelease downloaded to the local, using the word opens can view the list of packages, as follows:

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

2、root@xuegod53:~# apt upgrade

apt upgrade is more, according to the latest package list update command to get the go really update software

3、root@xuegod53:~# apt dist-upgrade

apt dist-upgrade is more, according to the latest update command to get the list of packages, to really update the software.

4, apt upgrade and dist-upgrade differences:

upgrade: Package upgrade existing system, if there are dependency problems, and this dependency needs to be installed when other new Package quit affect the dependency of other Package This Package will be upgraded to Ji, will be retained.

dist-upgrade: can an intelligent solution to the problem of dependency, dependency if there is a problem, you need to install / remove the new Package, will try to install / remove it (it is usually dist-upgrade would be considered a bit. upgrade risk)

For example, a software package originally dependent bcd, but the source there may have been upgraded, and now is a dependent bce. In this case, dist-upgrade installation will remove E d, and to a package upgrade, upgrade dependency changes that would reject a package upgrade. Figure:

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

For the operation of general personal and server use: apt upgrade is stable and reliable upgrade to meet our needs.

Finally, the point to note is that every time before updating Ho, we need to run the update, before you can run upgrade and dist-upgrade, because the equivalent update command to get some information about the package, such as size and version number, and then run again to download the upgrade package, if the packet is not acquired, then the upgrade is invalid it!

Finally, you must make a virtual machine snapshot

kali linux Tutorial: Configuring Kali's apt source command-line installation package for the cloud Ali

 

Guess you like

Origin www.cnblogs.com/xuegod/p/11460637.html