当前位置:网站首页>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
边栏推荐
猜你喜欢

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

Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)

如何用list组件实现tabbar标题栏
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?

TIPC messaging3

JVM之垃圾回收器
![[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched](/img/5c/b0030fd5fbc07eb94013f2699c2a04.png)
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched

Hdu1234 door opener and door closer (water question)

Special topic of binary tree -- acwing 18 Rebuild the binary tree (construct the binary tree by traversing the front and middle order)

软件产品管理系统有哪些?12个最佳产品管理工具盘点
随机推荐
JSP webshell free -- webshell free
LVM操作
HDU1234 开门人和关门人(水题)
软件产品管理系统有哪些?12个最佳产品管理工具盘点
php中self和static在方法中的区别
6种单例模式的实现方式
快应用中实现自定义抽屉组件
Common methods of JS array
TIPC Getting Started6
Flink two Open, implement Batch Lookup join (attached source)
TIPC Service and Topology Tracking4
正则及常用公式
Point cloud projection picture
Use Huawei performance management service to configure the sampling rate on demand
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
【ARK UI】HarmonyOS ETS的启动页的实现
V2x SIM dataset (Shanghai Jiaotong University & New York University)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?