当前位置:网站首页>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
边栏推荐
- 二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
- 洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
- TIPC Getting Started6
- MySQL lethal serial question 3 -- are you familiar with MySQL locks?
- TIPC messaging3
- TIPC介绍1
- 华为应用市场应用统计数据问题大揭秘
- php中self和static在方法中的区别
- 金山云——2023届暑期实习
- Binary tree topic -- p1030 [noip2001 popularization group] find the first order
猜你喜欢

QT learning diary 8 - resource file addition
![[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]](/img/50/22f2fa8fd606572b13a18cc889ca2e.png)
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]

Matlab processing of distance measurement of experimental electron microscope

二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作

Implement custom drawer component in quick application

The most detailed MySQL installation tutorial

【深入浅出玩转FPGA学习5-----复位设计】

首份中国企业敏捷实践白皮书发布| 附完整下载

HDU1234 开门人和关门人(水题)

快应用中实现自定义抽屉组件
随机推荐
How does the whole network display IP ownership?
TIPC Service and Topology Tracking4
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
K-d tree and octree of PCL
TIPC协议
洛谷 P4281 [AHOI2008]紧急集合 / 聚会(树上倍增 LCA)
Leetcode 182 Find duplicate email (2022.07.01)
HDU1236 排名(结构体排序)
主键策略问题
Why does LabVIEW lose precision in floating point numbers
Filtering of PCL
Implementation of six singleton modes
Special topic of binary tree -- acwing 18 Rebuild the binary tree (construct the binary tree by traversing the front and middle order)
如何用list组件实现tabbar标题栏
TIPC introduction 1
C# 文件与文件夹操作
Common methods of JS array
软件产品管理系统有哪些?12个最佳产品管理工具盘点
二叉树专题--AcWing 1589. 构建二叉搜索树