统信os下载离线apt-get包ffmpeg

由于ffmpeg在不同平台上使用源代码编译安装复杂,现在使用官方仓库的包,离线下载后,再安装到其他机器上。

apt-get下载的包,默认位置在/var/cache/apt/archieve
当前环境: 统信桌面家庭版21.0 版本号20
因为当前系统已安装了ffmpeg,这里卸载后再下载包

删除系统默认的ffmpeg

sudo apt-get remove ffmpeg # 卸载ffmpeg包
sudo apt-get autoremove ffmpeg # 卸载ffmpeg依赖的包
sudo apt-get clean # 清空/var/cache/apt/archives/ 目录

下载ffmpeg包

cd /var/cache/apt/archives
sudo apt-get install -d ffmpeg

下载后得到ffmpeg_7%3a4.1.6.11-1+dde_amd64.deb

dpkg --info ffmpeg_7%3a4.1.6.11-1+dde_amd64.deb | less # 查看包的依赖,内容如下
新格式的 Debian 软件包,格式版本 2.0。
 大小 1434468 字节:主控包=1992 字节。
    1392 字节,   24 行      control              
    2126 字节,   31 行      md5sums              
     190 字节,    5 行   *  postinst             #!/bin/sh
     190 字节,    5 行   *  postrm               #!/bin/sh
     190 字节,    5 行   *  preinst              #!/bin/sh
     190 字节,    5 行   *  prerm                #!/bin/sh
 Package: ffmpeg
 Version: 7:4.1.6.11-1+dde
 Architecture: amd64
 Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
 Installed-Size: 1960
 Depends: libavcodec58 (= 7:4.1.6.11-1+dde), libavdevice58 (= 7:4.1.6.11-1+dde), libavfilter7 (= 7:4.1.6.11-1+dde), libavformat58 (= 7:4.1.6.11-1+dde), libavresample4 (= 7:4.1.6.11-1+dde), libavutil56 (= 7:4.1.6.11-1+dde), libc6 (>= 2.14), libpostproc55 (= 7:4.1.6.11-1+dde), libsdl2-2.0-0 (>= 2.0.9), libswresample3 (= 7:4.1.6.11-1+dde), libswscale5 (= 7:4.1.6.11-1+dde)
 Suggests: ffmpeg-doc
 Breaks: libav-tools (<< 6:12~~), qt-faststart (<< 7:2.7.1-3~), winff (<< 1.5.5-5~)
 Replaces: libav-tools (<< 6:12~~), qt-faststart (<< 7:2.7.1-3~)
 Section: video
 Priority: optional
 Multi-Arch: foreign
 Homepage: https://ffmpeg.org/
 Description: Tools for transcoding, streaming and playing of multimedia files
  FFmpeg is the leading multimedia framework, able to decode, encode, transcode,
  mux, demux, stream, filter and play pretty much anything that humans and
  machines have created. It supports the most obscure ancient formats up to the
  cutting edge.
  .
  This package contains:
   * ffmpeg: a command line tool to convert multimedia files between formats
   * ffplay: a simple media player based on SDL and the FFmpeg libraries
   * ffprobe: a simple multimedia stream analyzer
   * qt-faststart: a utility to rearrange Quicktime files

下载依赖包

sudo apt-get install -d libavcodec58
...

下载完所有依赖后,所有文件如下

-rw-r--r-- 1 root root 1434468 1月  26  2021 ffmpeg_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root 4805744 1月  26  2021 libavcodec58_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root 4769708 1月  26  2021 libavcodec58_7%3a4.1.6.11-1+dde_i386.deb
-rw-r--r-- 1 root root  123564 1月  26  2021 libavdevice58_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root 1046888 1月  26  2021 libavfilter7_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root 1010460 1月  26  2021 libavformat58_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root  102068 1月  26  2021 libavresample4_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root  104868 1月  26  2021 libavresample4_7%3a4.1.6.11-1+dde_i386.deb
-rw-r--r-- 1 root root  237304 1月  26  2021 libavutil56_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root  253028 1月  26  2021 libavutil56_7%3a4.1.6.11-1+dde_i386.deb
-rw-r--r-- 1 root root 2868972 2月  26  2021 libc6_2.28.12-1+eagle_amd64.deb
-rw-r--r-- 1 root root 2747996 2月  26  2021 libc6_2.28.12-1+eagle_i386.deb
-rw-r--r-- 1 root root  101076 1月  26  2021 libpostproc55_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root  401740 2月   9  2021 libsdl2-2.0-0_2.0.9.4-1+eagle_amd64.deb
-rw-r--r-- 1 root root  409160 2月   9  2021 libsdl2-2.0-0_2.0.9.4-1+eagle_i386.deb
-rw-r--r-- 1 root root  104992 1月  26  2021 libswresample3_7%3a4.1.6.11-1+dde_amd64.deb
-rw-r--r-- 1 root root  110008 1月  26  2021 libswresample3_7%3a4.1.6.11-1+dde_i386.deb
-rw-r--r-- 1 root root  202276 1月  26  2021 libswscale5_7%3a4.1.6.11-1+dde_amd64.deb
posted @ 2021-11-09 16:10  影随风动91  阅读(208)  评论(0)    收藏  举报