apt-get 命令

sudo apt-get update
sudo apt-get install tree
sudo apt-get -y install tree         //跳过系统提示,直接安装。
sudo apt-get remove tree         
sudo apt-get autoremove tree

apt-get 安装路径一般就下面几个

/usr/bin
/usr/lib
/usr/share
/usr/share/man

查看方法

dpkg -L 软件包名

例如:

sudo dpkg -L tree
/.
/usr
/usr/bin
/usr/bin/tree
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/tree.1.gz
/usr/share/doc
/usr/share/doc/tree
/usr/share/doc/tree/TODO
/usr/share/doc/tree/copyright
/usr/share/doc/tree/README.gz
/usr/share/doc/tree/changelog.Debian.gz

在/var/cache/apt/archives可以找到你安装程序的包

转载:

apt-get install的默认安装路径

清闲居C博客:http://blog.csdn.net/zzxian/article/details/7233622

相关文章:

  • 2021-08-24
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案