天天看点

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、测试,已经出现或者画面

ubuntu系统如何安装软件

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) ...      
root@ubuntu01:~/Desktop# sl
bash: /usr/games/sl: No such file or directory