root@francs:~# pkg install lrzsz Updating repository catalogue The following 2 packages will be installed: Upgrading gettext:0.18.3.1 -> 0.18.3.1_1 Installing lrzsz:0.12.20_4 The installation will require 423 KB more space 66 KB to be downloaded Proceed with installing packages [y/N]: y lrzsz-0.12.20_4.txz 100% 66KB 65.6KB/s 65.6KB/s 00:01 Checking integrity... done [1/2] Upgrading gettext from 0.18.3.1 to 0.18.3.1_1... done [2/2] Installing lrzsz-0.12.20_4... done root@francs:/usr/ports/comms/lrzsz# lrz Makefile distinfo files/ pkg-descr pkg-plist root@francs:/usr/ports/comms/lrzsz# lrz lrz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel.
备注: 这里需要联网下载安装包,如果包较大,费时较长。
1.2 删除 lrzsz
1 2 3 4 5 6 7 8 9
root@francs:~ # pkg delete lrzsz Deinstallation has been requested for the following 1 packages: lrzsz-0.12.20_4 The deinstallation will free 423 KB Proceed with deinstalling packages [y/N]: y [1/1] Deleting lrzsz-0.12.20_4... done
root@francs:/usr/ports/comms/lrzsz# cd /usr/ports/comms/lrzsz root@francs:/usr/ports/comms/lrzsz# make install clean
备注:这种方式为编译安装,安装时同样需要联网下载。
2.2 卸载 lrzsz
1 2 3 4 5 6 7 8 9 10
root@francs:/usr/local/bin# cd /usr/ports/comms/lrzsz/ root@francs:/usr/ports/comms/lrzsz# make deinstall clean ===> Deinstalling for comms/lrzsz ===> Deinstalling Deinstallation has been requested for the following 1packages: lrzsz-0.12.20_4 The deinstallation will free 423 KB [1/1] Deleting lrzsz-0.12.20_4... done