一、背景

apt-get install/remove在线安装/卸载文件真是方便极了。

但是有时候安装/卸载文件不清楚文件在服务器上的实际命名,例如想安装sndfile。应该执行下面哪个命令呢?

  1. apt-get install sndfile
  2. apt-get install libsndfile

正确答案是都不对。如何知道正确的命名呢?

二、查询文件命名

apt-cache一个非常有用的命令出来了。

(类比RedHat系的yum search)

  1. . apt-cache search sndfile

查询的结果如下:

  1. libsndfile1 - Library for reading/writing audio files
  2. libsndfile1-dbg - debugging symbols for libsndfile
  3. libsndfile1-dev - Development files for libsndfile; a library for reading/writing audio files
  4. alure-doc - AL Utilities REtooled (documentation)
  5. alure-utils - AL Utilities REtooled (utilities)
  6. ir.lv2 - LV2 IR reverb
  7. jack-capture - program for recording soundfiles with jack
  8. kluppe - loop-player and recorder designed for live use
  9. libalure-dev - AL Utilities REtooled (development files)
  10. libalure1 - AL Utilities REtooled (shared library)
  11. moc - ncurses based console audio player
  12. python-soundfile - Python audio module based on libsndfile and NumPy
  13. python3-soundfile - Python audio module based on libsndfile
  14. qmmp - feature-rich audio player with support of many formats
  15. samplerate-programs - Sample programs that use libsamplerate
  16. silan - commandline tool to detect silence in audio-files
  17. sndfile-programs - Sample programs that use libsndfile
  18. sndfile-programs-dbg - debugging symbols for sndfile-programs
  19. sndfile-tools - Collection of programs for operating on sound files
  20. xmms2-plugin-sndfile - XMMS2 - sndfile decoder
  21. zita-resampler - resampler application written with libzita-resampler

这个查询的有点太模糊了,含有字母s,n,d,f,i,l,e(甚至部分字母)的结果都出来了。

来个更准确一点的查询吧。

  1. . apt-cache search sndfile|grep sndfile

查询的结果如下:

  1. libsndfile1 - Library for reading/writing audio files
  2. libsndfile1-dbg - debugging symbols for libsndfile
  3. libsndfile1-dev - Development files for libsndfile; a library for reading/writing audio files
  4. python-soundfile - Python audio module based on libsndfile and NumPy
  5. python3-soundfile - Python audio module based on libsndfile
  6. sndfile-programs - Sample programs that use libsndfile
  7. sndfile-programs-dbg - debugging symbols for sndfile-programs
  8. sndfile-tools - Collection of programs for operating on sound files
  9. xmms2-plugin-sndfile - XMMS2 - sndfile decoder

结果清爽多了。

3. 现在知道了,安装sndfile的正确命令是

  1. apt-get install libsndfile1

二、查询文件详细信息

  1. apt-cache show libsndfile1

查询的结果片段如下:

  1. ...
  2. Architecture: amd64
  3. Source: libsndfile
  4. Version: 1.0.-
  5. Depends: libc6 (>= 2.14), libflac8 (>= 1.3.), libvorbisenc2 (>= 1.1.)
  6. Filename: pool/main/libs/libsndfile/libsndfile1_1.0.25-10_amd64.deb
  7. Size:
  8.  
  9. ...

版本,依赖关系,文件大小什么的都出来了。

三、查询已安装文件

  1. dpkg -l |grep libsndfile1

查询结果如下:

  1. ii libsndfile1:amd64 1.0.-10ubuntu0.16.04. amd64 Library for reading/writing audio files

这个结果表明这个文件安装成功了。

debian系在线安装软件apt-get命令族的更多相关文章

  1. Linux,Unix各种版本的操作系统在线安装软件命令

    摘自:http://blog.csdn.net/zjg555543/article/details/8278266 linux和unix,各个版本的操作系统都有自己的软件安装方式,最方便的莫过于在线安 ...

  2. 安装软件 学习linux命令

    nm -D /usr/lib64/libstdc++.so.6 | grep GLIBCnm dumps named symbols, -D for dynamic libs, and grep fo ...

  3. Linux系统中安装软件的几种方式

    转载:https://blog.csdn.net/qq_36119192/article/details/82866329 好长时间没有静下心来学习一下linux了 最近对linux安装软件有了点小小 ...

  4. ubuntu安装软件apt-get

    一. apt-get用法 apt 0.8.16~exp12ubuntu10.26 for i386 compiled on Aug  5 2015 19:06:21Usage: apt-get [op ...

  5. Linux系统中安装软件方法总结

    Linux系统中安装软件方法总结 [1]Linux系统中安装软件的几种方式 [2] Linux配置yum源(本地源和网络源) [3] SuSE下zypper源配置 [4] SUSE zypper 本地 ...

  6. bat-命令行安装软件

    批处理 执行的两种方式 1.直接右键以管理员身份运行 2.在管理员身份的cmd窗口中 .\xxx.bat 执行 区别 第一种方式 当前cmd默认路径为 C:\windows\system32 第二种方 ...

  7. centos在线安装svn

    centos在线安装svn 用下列命令安装svn服务 yum install subversion 创建svn版本库目录 mkdir -p /var/svn/svnrepos 创建版本库 svnadm ...

  8. Linux系统上查找已安装软件的路径

    在Linux系统上查找已安装软件路径的命令,以查找pcre的安装路径为例: [root@localhost doc]# rpm -ql pcre /lib64/libpcre.so. /lib64/l ...

  9. docker compose的使用--在线安装未完成

    Compose 是一个用户定义和运行多个容器的 Docker 应用程序.在 Compose 中你可以使用 YAML 文件来配置你的应用服务.然后,只需要一个简单的命令,就可以创建并启动你配置的所有服务 ...

随机推荐

  1. cocos2d-x-3.1 win32程序-初识源代码(coco2d-x 学习笔记二)

    本人吊丝一枚.没钱买mac电脑,仅仅能使用Visual Studio2013来开发cocos2d-x项目.当然也能够用eclipse来开发,可是开发与配置步骤要复杂的多,而且非常多功能没有其好.也是官 ...

  2. UVA 11464 Even Parity (独特思路)

    题意:有一个n*n的01矩阵,任务是把尽可能少的0变成1,使得每个元素的上.下.左.右元素之和为偶数. 思路:很容易想到的思路是枚举每个点是0还是1,因为n<=15,复杂度就是2^225显然TL ...

  3. connect-proxy rpm文件的安装

    1. rpm文件下载 http://rpm.pbone.net/index.php3?stat=3&search=connect-proxy&srodzaj=3 2. rpm的安装 h ...

  4. Inception in CNN

    之前也写过GoogLeNet的笔记.但那个时候对Inception有些似懂非懂,这周又一次看了一遍,觉得有了新的体会,特地又一次写一篇博客与它再续前缘. 本文属于论文笔记性质.特此声明. Networ ...

  5. 折腾开源WRT的AC无线路由之路-1

    Tags: tomato, dd-wrt, Netgear, NightHawk, R7000, RT-AC68U, RT-AC66U, N66U, N56U, WRT1900AC, Archer C ...

  6. redis 配置步骤

    1.下载 2.启动 3.持久化(快照和AOF) 4.主从配置(集群) 5.读写分离 6.自动切换主从 7.哨兵服务(集群) 8.集群锁 9.Session共享

  7. Memcached 的一些用法

    public interface ICache { object Get(string key); /// <summary> /// 根据 key 从缓存中读取数据 /// </s ...

  8. 用node.js写的代码

    下面的代码摘抄于官方网站,我在本地跑了一下,并且把自己的理解简单的做了记录 服务端 app.js var app = require('http').createServer(handler) var ...

  9. PHP高级教程-文件上传

    PHP 文件上传 通过 PHP,可以把文件上传到服务器. 本章节实例在 test 项目下完成,目录结构为: test |-----upload # 文件上传的目录 |-----form.html # ...

  10. flume hdfs一些简单配置记忆

    ############################################ # producer config ##################################### ...