使用pkgsrc.joyent.com 提供的linux 包

下载包

#
# Copy and paste the lines below to install the 64-bit EL 7.x set.
#
BOOTSTRAP_TAR="bootstrap-trunk-x86_64-20170127.tar.gz"
BOOTSTRAP_SHA="eb0d6911489579ca893f67f8a528ecd02137d43a"
# Download the bootstrap kit to the current directory.
curl -O https://pkgsrc.joyent.com/packages/Linux/el7/bootstrap/${BOOTSTRAP_TAR}
# Verify the SHA1 checksum.
echo "${BOOTSTRAP_SHA} ${BOOTSTRAP_TAR}" >check-shasum
sha1sum -c check-shasum
# Verify PGP signature. This step is optional, and requires gpg.
curl -O https://pkgsrc.joyent.com/packages/Linux/el7/bootstrap/${BOOTSTRAP_TAR}.asc
curl -sS https://pkgsrc.joyent.com/pgp/56AAACAF.asc | gpg --import
gpg --verify ${BOOTSTRAP_TAR}{.asc,}
# Install bootstrap kit to /usr/pkg
sudo tar -zxpf ${BOOTSTRAP_TAR} -C /
# Add paths
$ PATH=/usr/pkg/sbin:/usr/pkg/bin:$PATH
$ MANPATH=/usr/pkg/man:$MANPATH
 

简单使用

  • 更新包
pkgin -y update
  • 搜索包
pkgin search ^ffmpeg[0-9]$
  • 安装包
pkgin -y install ffmpeg4
  • 查询安装包的内容
pkg_info -qL ffmpeg4

效果

pkg_info -qL ffmpeg4
/usr/pkg/bin/ffmpeg4
/usr/pkg/bin/ffprobe4
/usr/pkg/include/ffmpeg4/libavcodec/ac3_parser.h
/usr/pkg/include/ffmpeg4/libavcodec/adts_parser.h
/usr/pkg/include/ffmpeg4/libavcodec/avcodec.h
/usr/pkg/include/ffmpeg4/libavcodec/avdct.h
/usr/pkg/include/ffmpeg4/libavcodec/avfft.h
/usr/pkg/include/ffmpeg4/libavcodec/d3d11va.h
/usr/pkg/include/ffmpeg4/libavcodec/dirac.h
/usr/pkg/include/ffmpeg4/libavcodec/dv_profile.h
/usr/pkg/include/ffmpeg4/libavcodec/dxva2.h
/usr/pkg/include/ffmpeg4/libavcodec/jni.h
/usr/pkg/include/ffmpeg4/libavcodec/mediacodec.h
/usr/pkg/include/ffmpeg4/libavcodec/qsv.h
/usr/pkg/include/ffmpeg4/libavcodec/vaapi.h

说明

pkgsrc 功能很强大,可以方便的安装多种语言包,同时也提供了方便的基于源码构建的能力

参考资料

https://github.com/joyent/pkgsrc/wiki
https://pkgsrc.joyent.com/install-on-linux/
https://www.pkgsrc.org/

最新文章

  1. [Android Pro] 常用的android工具类和库
  2. Linux服务器管理: 日志管理(一)
  3. wmware10安装ghost win7问题处理
  4. nodejs框架express4.x 学习--安装篇
  5. [翻译] C++ STL容器参考手册 (总册)
  6. hdu 5642 King's Order(数位dp)
  7. Django学习之路
  8. input submit button iOS webview browser diffrence
  9. VS2008SP1中CDialogEx的使用问题及解决
  10. 三.GC相关之三分钟认识GC算法
  11. ubuntu google chrome 全屏显示命令
  12. Aurelia binding
  13. Vue.js的复用组件开发流程
  14. Find the Top 10 commands in your linux box!
  15. 在excel中将缺失数据全部用0补齐
  16. Python 爬取 11 万 Java 程序员信息竟有这些重大发现!
  17. QQ音乐flac音乐转MP6格式怎样实现
  18. df -h执行卡住不动问题解决【转】
  19. ibm x3550m4 开启cpu高性能模式
  20. app服务端server端数据库设计

热门文章

  1. MySQL实战45讲学习笔记:第二十七讲
  2. Programming | 获取图像频域并分解为高低频
  3. Java 并发系列之十三:安全发布
  4. sql语句优化的30种方法
  5. fiddler 抓取winform wcf包
  6. Mysql相关问题-----1045 Access denied for user 'root'@'localhost' (using password: YES)报错
  7. WPF DataGrid使用DataTable为数据源,添加CheckBox列使用Delete删除行的方法
  8. Mybatis中的Mapper.xml映射文件sql查询接收多个参数
  9. [转载].NET ASP.NET 中web窗体(.aspx)利用ajax实现局部刷新
  10. 解决maven项目中web.xml is missing and <failOnMissingWebXml> is set to true