当前位置:网站首页>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
边栏推荐
- String splicing method in shell
- Summary of methods for counting the number of file lines in shell scripts
- AcWing 786. Number k
- 20220630 learning clock in
- Excel is not as good as jnpf form for 3 minutes in an hour. Leaders must praise it when making reports like this!
- Discussion on enterprise informatization construction
- Recommend a low code open source project of yyds
- Find the combination number acwing 886 Find the combination number II
- AcWing 787. 归并排序(模板)
- 网络安全必会的基础知识
猜你喜欢
LeetCode 513. 找树左下角的值
2022-2-13 learning xiangniuke project - version control
一个优秀速开发框架是什么样的?
AcWing 785. Quick sort (template)
Binary tree sorting (C language, char type)
The "booster" of traditional office mode, Building OA office system, was so simple!
20220630学习打卡
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
记忆化搜索 AcWing 901. 滑雪
LeetCode 715. Range module
随机推荐
What is the difference between sudo apt install and sudo apt -get install?
AcWing 787. Merge sort (template)
教育信息化步入2.0,看看JNPF如何帮助教师减负,提高效率?
STM32F103 can learning record
LeetCode 508. 出现次数最多的子树元素和
LeetCode 438. Find all letter ectopic words in the string
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
Gaussian elimination acwing 883 Gauss elimination for solving linear equations
浅谈企业信息化建设
【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature
Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
推荐一个 yyds 的低代码开源项目
On the setting of global variable position in C language
【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
What are the stages of traditional enterprise digital transformation?
记忆化搜索 AcWing 901. 滑雪
我們有個共同的名字,XX工
Just graduate student reading thesis
【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
Binary tree sorting (C language, int type)