Overview of apt command, apt command installs openjdk-7-jdk in Ubuntu16.04

apt is a Linux command, suitable for deb package management operating systems. It is mainly used to automatically search, install, upgrade, and uninstall software or operating systems from Internet software warehouses. deb package is
the file extension for the Debian software package format.

Insert image description here
Translated it is:

apt is a command-line package manager for
searching, managing, and querying information about packages.
It provides the same functionality as dedicated APT tools
like apt-get and apt-cache, but is enabled
by default for interactive use.
Most commonly used commands:
list - list packages by package name
search - search in package description
show - show package details
install - install a package
reinstall - reinstall a package
remove - remove a package
autoremove - automatically remove all unused packages
update - update List of available packages
upgrade - upgrade the system by installing/upgrading packages
full upgrade - upgrade the system by removing/installing/upgrading packages
edit source - edit source information file
satisfy - satisfy dependency string

apt update #Go to the kali source to synchronize the index file of the package. That is, running this command does not actually update the software, but is equivalent to the detection update under Windows, and obtains the dynamic status of the software.

apt install open-vm-tools-desktop fuse #Install the latest vmtools related software packages

reboot #Restart the host

The difference between apt and apt-get:

apt can be regarded as a subset of apt-get and apt-cache commands, which can provide necessary command options for package management.

Although apt-get has not been deprecated, as an ordinary user, you should still use apt first.

Note: apt install and apt-get install have the same function, they both install software packages, there is no difference.

ctrl+shift+"+" can change the font of the terminal.

Configure apt domestic source
Because Kali's own source is from abroad, it is often impossible to install or update software packages due to network problems. And the speed of foreign sources is very slow. Therefore, it is convenient and quick for us to directly switch to domestic sources.

vim /etc/apt/sources.list

Go to the page for downloading source files. Comment the existing deb lines with #.

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
# 复制上面两行内容,然后按下鼠标滚轮,就可以粘贴到文档中了。 

Ubuntu16.04 install openjdk-7-jdk

apt install openjdk-17-jdk

Installation is relatively easy.

Guess you like

Origin blog.csdn.net/wang121213145/article/details/131422419