当前位置:网站首页>PKG package manager usage instance in FreeBSD
PKG package manager usage instance in FreeBSD
2022-07-02 11:10:00 【Teacher Liu Trent】
This article will explain how to PKG Manage installation packages with the help of package manager |
System environment FreeBSD 12.2-RELEASE
adopt PKG command Search software
1. stay FreeBSD The easiest way to search for applications in is through PKG command That's ok . Grammar format :pkg serach [package_name], Here's the search vim Melon installation package : [email protected]:~ # pkg search vim
2. If you want to see which category the package belongs to , Please use -o Options , This is shown in the following example : [email protected]:~ # pkg search -o mariadb
Use PKG Management software 1. Use pkg install [package_name] Command to install the package : [email protected]:~ # pkg install -y lrzsz
2. If you need to query the installed installation package information , Use pkg info [package_name] Options , Use the following command : [email protected]:~ # pkg info pkg
Be careful : If the package is not installed in the system , be pkg info The command will show “ No matching packages ”:
3. To list FreeBSD All packages installed in , perform pkg info command , No options . Can cooperate with grep,less Wait for the command to use . [email protected]:~ # pkg info
4. Use pkg remove [package_name] Option to remove unused packages : [email protected]:~ # pkg remove -y lrzsz
5. If you want to prevent the deletion or modification of installed packages , have access to pkg Ordered lock Options , As shown in the figure below . [email protected]:~ # pkg lock nginx
You can see in the picture , Prompt that the file is locked , You can't remove every . If you need to unlock , Use pkg unlock [package_name] Command to unlock . [email protected]:~ # pkg unlock nginx nginx-1.18.0_25,2: unlock this package? [y/N]: y Unlocking nginx-1.18.0_25,2 6. To ensure that the repository and all installed software packages are the latest version or security patches , Use pkg update Update warehouse , Use pkg upgrade Upgrade to the latest version . [email protected]:~ # pkg update [email protected]:~ # pkg upgrade -y
7. To display information about remote repositories and locally installed programs , For example, how many software packages are installed in the system and how much disk space is occupied by the installed software , Please execute the following order . [email protected]:~ # pkg stats
8. To remove all dependent packages left behind by installed packages in the system , Use the following command : [email protected]:~ # pkg autoremove -y
9. If you need to delete the cache of the download installation package , have access to pkg clean -a -y Command to automatically clear , Use... Before running pkg clean -a -n Give it a trial run . [email protected]:~ # pkg clean -a -n
[email protected]:~ # pkg clean -a -y
summary This article is about how to PKG Manage installation packages with the help of package manager
边栏推荐
- Learn open62541 -- [66] UA_ Generation method of string
- Flink two Open, implement Batch Lookup join (attached source)
- Implement custom drawer component in quick application
- C#中索引器
- Filtering of PCL
- flink二开,实现了个 batch lookup join(附源码)
- P1055 [NOIP2008 普及组] ISBN 号码
- The difference between self and static in PHP in methods
- The first white paper on agile practice in Chinese enterprises was released | complete download is attached
- Matlab processing of distance measurement of experimental electron microscope
猜你喜欢
TIPC Cluster5
How to transfer event objects and user-defined parameters simultaneously in Huawei express applications
TIPC addressing 2
2022爱分析· 国央企数字化厂商全景报告
二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
Flink two Open, implement Batch Lookup join (attached source)
Use Huawei performance management service to configure the sampling rate on demand
Use of vscode tool
flink二开,实现了个 batch lookup join(附源码)
TIPC messaging3
随机推荐
Regular and common formulas
Flink two Open, implement Batch Lookup join (attached source)
How does the whole network display IP ownership?
PCL eigen introduction and simple use
P1055 [NOIP2008 普及组] ISBN 号码
JSP webshell免殺——JSP的基礎
How to use ide to automatically sign and debug Hongmeng application
二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)
TIPC 寻址2
C# 文件与文件夹操作
[play with FPGA learning 5 in simple terms ----- reset design]
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
HDU1228 A + B(map映射)
static 函数中的静态变量
Logu p3398 hamster looks for sugar (double LCA on the tree to judge whether the two paths in the tree intersect)
Indexer in C #
I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)