在Linux系统中,apt-get命令默认安装包的位置是在/usr目录下。具体来说,安装的可执行文件会存储在/usr/bin目录下,而库文件会存储在/usr/lib目录下。同时,相应的配置文件和文档等也会存储在/usr/share目录下。
举例,apt-get install mysql-server mysql-client安装后,查看有哪些相关目录
lighthouse@VM-8-6-ubuntu:~/eladmin$ sudo find / -name "mysql"
/var/log/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/etc/mysql
/etc/init.d/mysql
/etc/apparmor.d/abstractions/mysql
/usr/bin/mysql
/usr/lib/mysql
/usr/share/mysql
/usr/share/bash-completion/completions/mysql