linux pkgsrc 学习(一) 安装pkgsrc
使用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/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
2018-11-28 使用netlify-statuskit 进行系统业务状态报告
2018-11-28 heptio scanner kubernetes 集群诊断工具部署说明
2018-11-28 graalvm 简单试用
2018-11-28 使用 Prometheus 监控minio 性能指标信息&&docker-compose 方式运行
2018-11-28 Monitor Minio server with Prometheus
2018-11-28 Stream processing with Apache Flink and Minio