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 文件来配置你的应用服务.然后,只需要一个简单的命令,就可以创建并启动你配置的所有服务 ...
随机推荐
- 【Storm】学习笔记
Storm 1 基本概念 1.1 分布式.可扩展.高容错.实时流处理.跨语言 1.2 应用场景 1.2.1 实时分析 1.2.2 在线机器学习 1.2.3 分布式RPC 1.2.4 ETL数据抽取 1 ...
- java 读取本地的json文件
首先,要先去下载相关的jar包,否则你是无法做到的. 在百度或者谷歌里面输入java json jar包下载就行了(共7个包). xom-1.1.jar ezmorph-1.0.6.jar json ...
- python 初步学习
疑惑1:windows下的python 如何设置显示汉字 推荐几个学习网址,也方便自己以后查看: http://pmghong.blog.51cto.com/3221425/d-10 www.w3c ...
- COM中的HRESULT
- Run Repository Creation Utility (RCU) for Oracle Identity Management components
Run Repository Creation Utility (RCU) for Oracle Identity Management components Installing O ...
- nodejs检查已安装模块
命令行 npm ls --depth 0
- STL - 容器 - Forward List
forward list是一个行为受限的list, 不能走回头路. 它只提供前向迭代器, 而不提供双向迭代器. eg: rbegin(), rend(), crbegin(), crend()这些都不 ...
- 【.NET中AOP的实现方案】静态代理
Spring AOP 应该是比较出名的了,今天说的是C#里的AOP,C#的AOP实现的方式有很多种,现在就先介绍静态代理的实现方案: 模拟场景:我们在删除用户,或者更新用户的时候进行数据原始备份,这样 ...
- strcpy sprintf memcpy 它们之间的区别
strcpy,sprintf,memcpy的区别 strcpy 函数操作的对象是 字符串,完成 从 源字符串 到 目的字符串 的 拷贝 功能. snprintf 函数操作的对象 不限于字符串:虽然目 ...
- c的链接详解
多目标文件的链接 stack.c #include <stdio.h> #define STACKSIZE 1000 typedef struct stack { int data[STA ...