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

How to view the information of Ubuntu installation package

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains the "Ubuntu installation package information how to view", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Ubuntu installation package information how to view" it!

If you want to install and uninstall software using the command line, of course you need to know in advance the name of the package to be installed or uninstalled. APT is based on Debian Linux distribution (including Ubuntu) package management commands, using apt-cache we can find the system package-related metadata information, this article will show you how to view Ubuntu installation package information.

Use apt-cache

To list all the packages available on the Ubuntu system, we only need to execute the following command:

The code is as follows:

Apt-cache pkgnames | less

The | less pipe output in this command allows us to scroll through the up and down arrows or "PgUp" and "PgDn" when there is more data.

When we can't find the package name we need or we don't need to scroll through it, we just press Q to exit.

If you know the opening character of the package name, we can use the search function to narrow it down. For example, to view the package name of Firefox, you can use a command similar to the following:

The code is as follows:

Apt-cache pkgnames firef

Using the above command, we can see all the packages that start with firef.

When we know the package name and display the details of the package, such as version number, size, check value, and software description, we can use the show option to view it:

The code is as follows:

Apt-cache show firefox

When we want to see what dependencies a package needs and which packages depend on that package, we need to use the showpkg option:

The code is as follows:

Apt-cache showpkg firefox

When we need to view the statistics and overall statistics of different types of packages in Ubuntu, we can use the stats option:

The code is as follows:

Apt-cache stats

To learn about the migration of a package and related instructions, we can use the search option:

The code is as follows:

Apt-cache search firefox-locale-zh-hans

Use axi-cache

Axi-cache can be regarded as the twin of the apt-cache command, but it can provide more descriptive information and relevance. Let's take Firefox as an example:

The code is as follows:

Axi-cache search firef

The command displays 20 results by default:

For more information, use the following command:

The code is as follows:

Axi-cache more

Thank you for your reading, the above is the content of "how to view Ubuntu installation package information". After the study of this article, I believe you have a deeper understanding of how to view Ubuntu installation package information, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Servers

Wechat

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

12
Report