linux常用

来源:互联网 发布:淘宝图片放大镜js代码 编辑:程序博客网 时间:2024/06/12 01:16

apt-get下载的软件包和安装都在哪里?

/var/cache/apt/archieve 下的都是软件的安装缓存,你可以直接删除,或者用命令sudo apt-get autoclean(只删除低版本的deb包),sudo apt-get clean(全部删除)。一般的deb包(apt-get下载的)都安装在/usr或/usr/share或/usr/local。自己下载的压缩包或者编译的包,有些可以选择安装目录,一般放在/usr/local/,也有在/opt的。如果想知道具体位置,用命令代码:

dpkg-L xxx.deb
注意,xxx是deb包的名称
dpkg -L firefox 可查看Firefox的安装情况;dpkg -L eclipse  可查看Eclipse的安装位置。注意一般安装前update一下,获取下列表


/etc/apt/sources.list.d 这个文件夹是什么作用?

 The /etc/apt/sources.list.d directory provides a way to add sources.list entries in seperate files that end with .list. The format is the same as for the regular sources.list file.(也就是提供了一种有序管理第三源的方式而己,多个文件可以分别存放不同的第三源地址,“文件名”可以对第三源进行标识,只需“扩展名”为list即可)


apt-get的作用

和服务器同步软件包列表,于是当你apt-get install *时就能下到最新的软件

0 0
原创粉丝点击