Debian的发行版本包含众多的软件包,日常所需的软件和工具基本都囊括其中,这些软件包都是经过长时间测试和验证过的,具备非常好的稳定性。如果需要某个软件,若没有特殊的要求,尽量安装所属Debian的发行版本,以便获得良好稳定性。毕竟Debian名声就是稳定。
每个发行版本的软件包数量众多,怎么知道是否包含所需的软件?Debian官网提供了相应的信息和资料。
https://www.debian.org/distrib/packages
方式一:可以通过软件包列表分类查看所有的软件包
方式二:通过搜索查找程序或工具所属的软件包
最后通过apt安装相应的软件包即可。
markul@server:~# sudo apt-get install passwd
附带说明一下:通过su命令切换至root账号时,可能因为环境变量未复制过去导致sbin下的命令无法运行。这种情况通过"su -"命令即可。
markul@server:~# su
Password:
root@server:/# service
bash: service: command not found
root@server:/sbin# exit
logout
markul@server:~$ su -
Password:
root@server:~# service
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]