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 文件来配置你的应用服务.然后,只需要一个简单的命令,就可以创建并启动你配置的所有服务 ...
随机推荐
- 在Android中使用Android Ksoap2调用WebService
一.WebService介绍 WebService是基于SOAP协议可实现web服务器与web服务器之间的通信,因采用SOAP协议传送XML数据具有平台无关性,也是成为解决异构平台之间通信的重要解决方 ...
- android 创建通知栏Notification
///// 第一步:获取NotificationManager NotificationManager nm = (NotificationManager) getSystemService(Cont ...
- 遭遇java.lang.NoClassDefFoundError: org/apache/tomcat/PeriodicEventListener
前天还正常的程序,今天忽然无法启动了,MyEclipse的Console提醒我如下错误: 严重: Error deploying web application directory rttsbizja ...
- HTML5游戏,五子棋
在线演示 本地下载 最近html5的游戏还真是不少,这种在线游戏既简单又有趣.收藏几个在午休时间娱乐一下.何乐而不为呢?喜欢研究的可以下载代码看看.超级推荐!
- Bootstrap3实现的响应式幻灯滑动效果个人作品集/博客网站模板
在线演示 本地下载 如果你想学习如何开发和使用的话,请参考我们免费的课程: Bootstrap3开发滑动风格的博客网站模板
- MFC 小知识总结二
1 UpdateData 不能及时更新控件内容 原因: UpdateData是通过数据交换实现改变控件显示的.改变了之后必需要调用一次OnPaint才干实现刷新. 因此,若是在一个函数里重复多次调用有 ...
- Simple example
This is a simple example showing a small window. Yet we can do a lot with this window. We can resize ...
- webapp 里主要的 mate 用途
一.meta 标签分两大部分:HTTP 标题信息(http-equiv)和页面描述信息(name). 1.http-equiv 属性的 Content-Type 值(显示字符集的设定) 说明:设定页面 ...
- RAM调优之日志分析
D/dalvikvm: <GC_Reason> <Amount_freed>, <Heap_stats>, <External_memory_stats> ...
- python之模块csv之 读取CSV文件(reader和DictReader2个方法)
# -*- coding: utf-8 -*- #python 27 #xiaodeng #读取CSV文件(reader和DictReader2个方法) import csv #csv文件,是一种常用 ...