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 Ubuntu installation package information

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

Share

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

This article to share with you is about how to view the Ubuntu installation package information, Xiaobian feel quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.

Using apt-cache

To list all the packages available in Ubuntu, we simply need to execute the following command:

copy code

The code is as follows:

apt-cache pkgnames | less

in that order.| Less pipeline output, allowing us to scroll through data when there is a lot of data through the up and down arrows or "PgUp" and "PgDn."

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

If you know the first character of the package name, we can use the search function to narrow it down. For example, to view Firefox package names, you can use commands like:

copy code

The code is as follows:

apt-cache pkgnames firef

Using the above command, we can view all packages that start with fire.

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

copy code

The code is as follows:

apt-cache show firefox

When we want to see what a package requires and what packages depend on it, we need to use the showpkg option:

copy code

The code is as follows:

apt-cache showpkg firefox

When we need to see statistics for different types of packages and overall statistics for current Ubuntu, we can use the stats option:

copy code

The code is as follows:

apt-cache stats

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

copy code

The code is as follows:

apt-cache search firefox-locale-zh-hans

Using axi-cache

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

copy code

The code is as follows:

axi-cache search firef

This command displays 20 results by default:

For more information, use the following command:

copy code

The code is as follows:

axi-cache more

The above is how to view Ubuntu installation package information, Xiaobian believes that some knowledge points may be what we see or use in our daily work. I hope you can learn more from this article. For more details, please follow 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

Servers

Wechat

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

12
Report