当前位置:网站首页>Linxu learning (4) -- Yum and apt commands
Linxu learning (4) -- Yum and apt commands
2022-07-03 09:11:00 【Fill your head with water】
Catalog
□ Linux yum command
yum( Yellow dog Updater, Modified) It's a Fedora and RedHat as well as SUSE Medium Shell Front end package manager .
be based on RPM Package management , Can be automatically downloaded from the specified server RPM Package and install , Dependency relationships can be handled automatically , And install all the dependent packages at once , No need to download it over and over again 、 install .
yum Provides search 、 install 、 Delete a 、 A set or even a whole package of commands , And the command is simple and easy to remember .
1. yum grammar
yum [options] [command] [package ...]
options: Optional , Options include -h( help ),-y( When prompted during the installation process, select all as "yes"),-q( Do not show the installation process ) wait .
command: What to do .
package: Installed package name .
2. yum Common commands
· 1. List all updatable software list commands :yum check-update
· 2. Update all software commands :yum update
· 3. Install only the specified software commands :yum install <package_name>
· 4. Update only the specified software commands :yum update <package_name>
· 5. List all installable software list commands :yum list
· 6. Delete package command :yum remove <package_name>
· 7. Find package command :yum search
· 8. Clear cache command :
o yum clean packages: Clear package in cache directory
o yum clean headers: Clear... From the cache directory headers
o yum clean oldheaders: Clear the old... In the cache directory headers
o yum clean, yum clean all (= yum clean packages; yum clean oldheaders) : Clear the packages and old ones in the cache directory headers
□ Linux apt command
apt(Advanced Packaging Tool) It's a Debian and Ubuntu Medium Shell Front end package manager .
apt Command execution requires super administrator privileges (root).
1. apt grammar
apt [options] [command] [package ...]
options: Optional , Options include -h( help ),-y( When prompted during the installation process, select all as "yes"),-q( Do not show the installation process ) wait .
command: What to do .
package: Installed package name .
2. apt Common commands
· List all updatable software list commands :sudo apt update
· Upgrade package :sudo apt upgrade
List updatable packages and version information :apt list --upgradeable
Upgrade package , Delete the software package that needs to be updated before upgrading :sudo apt full-upgrade
· Install the specified software command :sudo apt install <package_name>
Install multiple packages :sudo apt install <package_1> <package_2> <package_3>
· Update the specified software command :sudo apt update <package_name>
· Display package details , for example : Version number , Installation size , Dependencies, etc :sudo apt show <package_name>
· Delete package command :sudo apt remove <package_name>
· Clean up dependency and library files that are no longer in use : sudo apt autoremove
· Remove packages and configuration files : sudo apt purge <package_name>
· Find package command : sudo apt search
· List all installed packages :apt list --installed
· List the version information of all installed packages :apt list --all-versions
边栏推荐
- Using DLV to analyze the high CPU consumption of golang process
- 【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
- 传统企业数字化转型需要经过哪几个阶段?
- Wonderful review | i/o extended 2022 activity dry goods sharing
- LeetCode 75. 颜色分类
- Escape from heaven and forget what he suffered. In ancient times, it was called the punishment of escape from heaven. Article collection
- 2022-2-13 learn the imitation Niuke project - Project debugging skills
- LeetCode 1089. 复写零
- 我們有個共同的名字,XX工
- 教育信息化步入2.0,看看JNPF如何帮助教师减负,提高效率?
猜你喜欢

Common penetration test range

Low code momentum, this information management system development artifact, you deserve it!

excel一小时不如JNPF表单3分钟,这样做报表,领导都得点赞!

Just graduate student reading thesis

【点云处理之论文狂读经典版13】—— Adaptive Graph Convolutional Neural Networks

我們有個共同的名字,XX工

干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了

数位统计DP AcWing 338. 计数问题

Basic knowledge of network security

On a un nom en commun, maître XX.
随机推荐
樹形DP AcWing 285. 沒有上司的舞會
22-05-26 Xi'an interview question (01) preparation
AcWing 788. Number of pairs in reverse order
传统办公模式的“助推器”,搭建OA办公系统,原来就这么简单!
AcWing 786. 第k个数
AcWing 787. 归并排序(模板)
LeetCode 75. 颜色分类
With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode
Too many open files solution
Markdown learning
AcWing 785. 快速排序(模板)
Introduction to the usage of getopts in shell
【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
LeetCode 438. Find all letter ectopic words in the string
低代码起势,这款信息管理系统开发神器,你值得拥有!
Problems in the implementation of lenet
Binary tree traversal (first order traversal. Output results according to first order, middle order, and last order)
LeetCode 1089. 复写零
Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
Save the drama shortage, programmers' favorite high-score American drama TOP10