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 use apt-get in Linux

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces how to use apt-get in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Linux apt-get installation, if baseutils depends on some other software, or a runtime xyz.0.01.so,apt-get will automatically download this package (or the package that contains the library). This is called automatic dependency handling. In general, if you only use the software in the Debian library, you will not find the package or the wrong version of the package, unless you are using the Testing or Unstable version under development.

Linux apt-get uninstalls the software:

# apt-get remove baseutils

If you want to see how much software there is in the library:

# apt-cache stats Total package names: 22502 (900k) Normal packages: 17632 Pure virtual packages: 281Single virtual packages: 1048 Mixed virtual packages: 172Missing: 3369

...

Linux apt-get upgrades all the local software to * version:

# apt-get upgrade

* is powerful-upgrade the entire distribution to a new version:

# apt-get dist-upgrade

Pay attention to the things that affect the startup of the system when upgrading, such as upgrading the kernel, upgrading grub or lilo, etc., after which you should rerun grub or lilo to point to the correct location, otherwise the upgrade will not work properly.

When you install the software with Linux apt-get, it downloads the software package from the Internet (the site referred to in sources.list). The package will be stored locally at / var/cache/apt/archives/. Over time, it will become very huge and take up a lot of hard disk space. To clean up this directory, run:

# apt-get clean

There is also an automatic cleanup feature that removes only useless or incomplete packages:

# apt-get autoclean

In this way, when reinstalling a certain software, you can still use what you have already downloaded, instead of downloading it online.

Dpkg-some underlying package management tools

Thank you for reading this article carefully. I hope the article "how to use apt-get in Linux" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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