当前位置:网站首页>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
边栏推荐
- 【ARK UI】HarmonyOS ETS的启动页的实现
- MTK full dump抓取
- 洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
- Openmldb meetup No.4 meeting minutes
- QT learning diary 8 - resource file addition
- TIPC协议
- Use Huawei performance management service to configure the sampling rate on demand
- 二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
- 【深入浅出玩转FPGA学习2----设计技巧(基本语法)】
- 软件产品管理系统有哪些?12个最佳产品管理工具盘点
猜你喜欢

QT learning diary 8 - resource file addition

Shell programming 01_ Shell foundation

Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)

QT学习日记8——资源文件添加

Jsp webshell Free from killing - The Foundation of JSP

实验电镜距离测量之Matlab处理

JVM garbage collector
![[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)]
![[AI application] Hikvision ivms-4200 software installation](/img/4e/1640e3cafac13ce4d39520195c3217.png)
[AI application] Hikvision ivms-4200 software installation
![Luogu p5536 [xr-3] core city (greed + tree DP looking for the center of the tree)](/img/dc/2aa55c9b3f23c292820a56ea72fedd.png)
Luogu p5536 [xr-3] core city (greed + tree DP looking for the center of the tree)
随机推荐
Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
PCL eigen introduction and simple use
Flink two Open, implement Batch Lookup join (attached source)
洛谷 P4281 [AHOI2008]紧急集合 / 聚会(树上倍增 LCA)
Flick two open, realized a batch lookup join (with source code)
TIPC介绍1
二叉树专题--AcWing 1497. 树的遍历(利用后、中序遍历,构建二叉树)
点云投影图片
III Chip startup and clock system
【AI应用】海康威视iVMS-4200软件安装
快应用中实现自定义抽屉组件
Use of vscode tool
Overview of integrated learning
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
【快应用】Win7系统使用华为IDE无法运行和调试项目
Learn open62541 -- [66] UA_ Generation method of string
一招快速实现自定义快应用titlebar
实验电镜距离测量之Matlab处理
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
How to use ide to automatically sign and debug Hongmeng application