1. 程式人生 > 其它 >ubuntu系統如何安裝軟體

ubuntu系統如何安裝軟體

1、測試sl命令

root@ubuntu01:~/Desktop# sl
bash: /usr/games/sl: No such file or directory
root@ubuntu01:~/Desktop# 

2、安裝sl

root@ubuntu01:~/Desktop# apt-get install sl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfprint
-2-tod1 libllvm10 Use 'apt autoremove' to remove them. The following NEW packages will be installed: sl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/12.7 kB of archives. After this operation, 60.4 kB of additional disk space will be used. Selecting previously unselected package sl. (Reading database ...
186405 files and directories currently installed.) Preparing to unpack .../archives/sl_5.02-1_amd64.deb ... Unpacking sl (5.02-1) ... Setting up sl (5.02-1) ... Processing triggers for man-db (2.9.1-1) ...

3、測試,已經出現或者畫面

4、解除安裝

root@ubuntu01:~/Desktop# apt-get remove sl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfprint
-2-tod1 libllvm10 Use 'apt autoremove' to remove them. The following packages will be REMOVED: sl 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 60.4 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 186428 files and directories currently installed.) Removing sl (5.02-1) ... Processing triggers for man-db (2.9.1-1) ...

5、測試,解除安裝成功

root@ubuntu01:~/Desktop# sl
bash: /usr/games/sl: No such file or directory