Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the ways to use the apt-get command

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article, "what is the use of the apt-get command?", so the editor summarizes the following, detailed contents, clear steps, and a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the use of the apt-get command" article.

This article is based on the Xunwei-IMX6ULL Terminator development board. We are very familiar with the download and installation of software under the Windows system. We usually use the command "apt-get" to download and install the Ubuntu system software, which can automatically download and install the configuration. This command adopts the client / server mode. Our Ubuntu system, as the client, initiates a request to the server when the software needs to be downloaded, so we need to configure the address of the server, first open the "system Settings" interface, and then open "Software and updates"

Set, and when opened, it is shown in the following figure:

In the "download from" drop-down list in the above figure, select "servers in China", and then the authentication dialog box will pop up, and we enter login Ubuntu.

And then click the authorize button, as shown in the following figure:

After completing the settings shown in the figure above, we will return to the "Software and updates" interface, and then we click the "close" button to complete the server (the

Settings), as shown in the following figure:

After setting up the server (software source), let's learn how to use the apt-get command.

2.6.1 Update Software list

Sudo apt-get update

This command accesses each URL in the source list, reads the software list, and saves it on the local computer. We looked at the package manager.

The list of software is updated through the update command. We enter the change command on the terminal, and the running result is as follows:

2.6.2 check the dependency for corruption

Sudo apt-get check

The so-called dependence means that the operation of A software may need to rely on B software, only when B software is installed, A software can run normally. We can

Check whether the dependency of the software in the system is damaged by changing the command. The running result is shown in the following figure:

2.6.3 Software installation

Sudo apt-get install package-name

We can use this command to install the software. Package-name is the name of the specific software we want to install, such as our development process.

The serial port tool is used in the. The default Ubuntu system is not installed, so we can use this command to manually install the serial port tool "minicom".

We enter the command "sudo apt-get install minicom" on the terminal, and the result is shown in the following figure:

We will be prompted to confirm the installation during the installation process, and if we continue with the installation, enter "y" to continue the installation (if we plan to cancel the installation

Install, you can type "n" to cancel the installation), and the installation is completed as shown in the following figure:

After the minicom installation is complete, we can enter the "sudo minicom-s" command on the terminal to open the serial port tool, as shown in the following figure:

About the use of minicom here we will not introduce in detail, you can go to the Internet search, we can press the keyboard "ESC", directly

Exit minicom.

2.6.4 Software updates

Sudo apt-get upgrade

This command compares the locally installed software with the corresponding software in the list of software downloaded by apt-get update, if you find that the installed

If the software version is low, it will be prompted to update, and if the software is already the latest version, it will not be updated. We type "sudo apt-get upgrade" at the terminal.

The running result is shown in the following figure:

After we enter the software update command, we prompt that there are 83 software packages that need to be updated, and then we enter y to confirm the update (you can enter it if you cancel the update

Enter n), and the software update is completed as shown below:

2.6.5 Software Uninstall

Sudo apt-get remove package-name

If we need to uninstall the installed package-name software, we can use this command, such as uninstalling the minicom we installed earlier

Software, we enter "sudo apt-get remove minicom" in the terminal, and the running result is shown in the following figure:

During the unloading process, we enter y, and then press enter to continue the unloading (if you cancel the unloading, you can enter n), and the unloading is complete, as shown in the following figure:

The above is about the content of this article on "how to use the apt-get command". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report