debian系在线安装软件apt-get命令族
一、背景
apt-get install/remove在线安装/卸载文件真是方便极了。
但是有时候安装/卸载文件不清楚文件在服务器上的实际命名,例如想安装sndfile。应该执行下面哪个命令呢?
apt-get install sndfile
apt-get install libsndfile
正确答案是都不对。如何知道正确的命名呢?
二、查询文件命名
apt-cache一个非常有用的命令出来了。
(类比RedHat系的yum search)
. apt-cache search sndfile
查询的结果如下:
libsndfile1 - Library for reading/writing audio files
libsndfile1-dbg - debugging symbols for libsndfile
libsndfile1-dev - Development files for libsndfile; a library for reading/writing audio files
alure-doc - AL Utilities REtooled (documentation)
alure-utils - AL Utilities REtooled (utilities)
ir.lv2 - LV2 IR reverb
jack-capture - program for recording soundfiles with jack
kluppe - loop-player and recorder designed for live use
libalure-dev - AL Utilities REtooled (development files)
libalure1 - AL Utilities REtooled (shared library)
moc - ncurses based console audio player
python-soundfile - Python audio module based on libsndfile and NumPy
python3-soundfile - Python audio module based on libsndfile
qmmp - feature-rich audio player with support of many formats
samplerate-programs - Sample programs that use libsamplerate
silan - commandline tool to detect silence in audio-files
sndfile-programs - Sample programs that use libsndfile
sndfile-programs-dbg - debugging symbols for sndfile-programs
sndfile-tools - Collection of programs for operating on sound files
xmms2-plugin-sndfile - XMMS2 - sndfile decoder
zita-resampler - resampler application written with libzita-resampler
这个查询的有点太模糊了,含有字母s,n,d,f,i,l,e(甚至部分字母)的结果都出来了。
来个更准确一点的查询吧。
. apt-cache search sndfile|grep sndfile
查询的结果如下:
libsndfile1 - Library for reading/writing audio files
libsndfile1-dbg - debugging symbols for libsndfile
libsndfile1-dev - Development files for libsndfile; a library for reading/writing audio files
python-soundfile - Python audio module based on libsndfile and NumPy
python3-soundfile - Python audio module based on libsndfile
sndfile-programs - Sample programs that use libsndfile
sndfile-programs-dbg - debugging symbols for sndfile-programs
sndfile-tools - Collection of programs for operating on sound files
xmms2-plugin-sndfile - XMMS2 - sndfile decoder
结果清爽多了。
3. 现在知道了,安装sndfile的正确命令是
apt-get install libsndfile1
二、查询文件详细信息
apt-cache show libsndfile1
查询的结果片段如下:
...
Architecture: amd64
Source: libsndfile
Version: 1.0.-
Depends: libc6 (>= 2.14), libflac8 (>= 1.3.), libvorbisenc2 (>= 1.1.)
Filename: pool/main/libs/libsndfile/libsndfile1_1.0.25-10_amd64.deb
Size: ...
版本,依赖关系,文件大小什么的都出来了。
三、查询已安装文件
dpkg -l |grep libsndfile1
查询结果如下:
ii libsndfile1:amd64 1.0.-10ubuntu0.16.04. amd64 Library for reading/writing audio files
这个结果表明这个文件安装成功了。
debian系在线安装软件apt-get命令族的更多相关文章
- Linux,Unix各种版本的操作系统在线安装软件命令
摘自:http://blog.csdn.net/zjg555543/article/details/8278266 linux和unix,各个版本的操作系统都有自己的软件安装方式,最方便的莫过于在线安 ...
- 安装软件 学习linux命令
nm -D /usr/lib64/libstdc++.so.6 | grep GLIBCnm dumps named symbols, -D for dynamic libs, and grep fo ...
- Linux系统中安装软件的几种方式
转载:https://blog.csdn.net/qq_36119192/article/details/82866329 好长时间没有静下心来学习一下linux了 最近对linux安装软件有了点小小 ...
- ubuntu安装软件apt-get
一. apt-get用法 apt 0.8.16~exp12ubuntu10.26 for i386 compiled on Aug 5 2015 19:06:21Usage: apt-get [op ...
- Linux系统中安装软件方法总结
Linux系统中安装软件方法总结 [1]Linux系统中安装软件的几种方式 [2] Linux配置yum源(本地源和网络源) [3] SuSE下zypper源配置 [4] SUSE zypper 本地 ...
- bat-命令行安装软件
批处理 执行的两种方式 1.直接右键以管理员身份运行 2.在管理员身份的cmd窗口中 .\xxx.bat 执行 区别 第一种方式 当前cmd默认路径为 C:\windows\system32 第二种方 ...
- centos在线安装svn
centos在线安装svn 用下列命令安装svn服务 yum install subversion 创建svn版本库目录 mkdir -p /var/svn/svnrepos 创建版本库 svnadm ...
- Linux系统上查找已安装软件的路径
在Linux系统上查找已安装软件路径的命令,以查找pcre的安装路径为例: [root@localhost doc]# rpm -ql pcre /lib64/libpcre.so. /lib64/l ...
- docker compose的使用--在线安装未完成
Compose 是一个用户定义和运行多个容器的 Docker 应用程序.在 Compose 中你可以使用 YAML 文件来配置你的应用服务.然后,只需要一个简单的命令,就可以创建并启动你配置的所有服务 ...
随机推荐
- 20 个具有惊艳效果的 jQuery 图像缩放插件
jQuery相对与Flash的魔力已经贯穿整个网络.尽管,Flash层被认为是用于网页设计的首选,然而随着jQuery的出现,以及他的酷似Flash的交互式特效使得网页更加的优雅——Flash开始靠边 ...
- java 切图 判断图片是否是纯色/彩色图片
首先上切图的代码 /** * 图片剪裁 * @param x 距离左上角的x轴距离 * @param y 距离左上角的y轴距离 * @param width 宽度 * @param height 高度 ...
- 如何判断CapsLock键是否按下
SHORT cap_state = ::GetKeyState(VK_CAPITAL); char str[10]; sprintf(str, "%d", ...
- bash參考手冊之六(Bash特性)
6 Bash 特性 这部分描写叙述Bash独有的特性. * 调用Bash : Bash能够接受的命令行选项. * Bash启动文件 : Bash何时及怎样运行脚本. * 交互Shell : 什么 ...
- xpath语法速查
xpath的具体学习可以通过w3c查看(链接:http://www.w3school.com.cn/xpath/index.asp) 这里只是将平时用到的几个表格贴出来,以后查询: 这里的xpath我 ...
- 单点登录(SSO)(原创)
单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一.SSO的定义是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统. 下面的sso ...
- Ubuntu系统环境变量配置文件(转)
原文:http://www.cnblogs.com/eastson/archive/2012/06/15/2550151.html 在Ubuntu中有如下几个文件可以设置环境变量: /etc/prof ...
- No configuration found for the specified action解决办法(转)
使用Struts2,配置一切正常,使用常用tag也正常,但是在使用<s:form>标记时,发现控制台总是输出警告信息, 警告信息内容如下: 警告: No configuration fou ...
- 解决Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://uk.maven.o ...
- javascript 1.5s跳转
<script type="text/javascript"> var t = 1.5; window.onload=countDown; function count ...