AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1325398
Accepted
Andrew Harlan
Andrew Harlan
Asked: 2021-03-23 12:00:50 +0800 CST2021-03-23 12:00:50 +0800 CST 2021-03-23 12:00:50 +0800 CST

通过 snap 和 apt-get 安装 ffmpeg 有什么区别?

  • 772

我无法在 twitter 和其他网站上查看内置视频,所以我想安装 ffmpeg。我运行了命令 snap install ffmpeg 并且它没有工作,但是在运行命令 sudo apt-get install ffmpeg 之后它安装了太多的文件并且它工作了。这里有什么区别?

apt
  • 2 2 个回答
  • 2344 Views

2 个回答

  • Voted
  1. Best Answer
    hc_dev
    2021-03-23T13:15:10+08:002021-03-23T13:15:10+08:00

    以下区别不会解释您在安装ffmpeg时遇到的问题。

    快照

    来自维基百科:“Snap(包管理器)”:

    Snap 是在沙箱中运行的独立应用程序,可通过中介访问主机系统。

    快照还安装为环回文件系统。

    从 Ubuntu 存储库安装的软件包

    通过aptitude(例如命令)安装的软件包apt-get install可能需要并导致单独安装进一步的依赖项。

    有关详细说明,请参阅此技术比较。

    • 2
  2. user4124
    2021-03-25T12:36:34+08:002021-03-25T12:36:34+08:00

    对于最终用户来说,最重要的问题是可用版本。

    这是ffmpeg作为 deb 包的最新版本。

    $ apt policy ffmpeg
    ffmpeg:
      Installed: 7:3.4.8-0ubuntu0.2
      Candidate: 7:3.4.8-0ubuntu0.2
      Version table:
     *** 7:3.4.8-0ubuntu0.2 500
            500 http://es.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
            500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
            100 /var/lib/dpkg/status
         7:3.4.2-2 500
            500 http://es.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
    

    这是快照包,

    $ snap info ffmpeg
    name:      ffmpeg
    summary:   A complete solution to record, convert and stream audio and video.
    publisher: Snapcrafters
    store-url: https://snapcraft.io/ffmpeg
    contact:   https://github.com/snapcrafters/ffmpeg/issues
    license:   GPL-3.0+
    description: |
      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. No matter if they were designed by some
      standards committee, the community or a corporation.
      
      This snap is maintained by the Snapcrafters community, and is not
      necessarily endorsed or officially maintained by the upstream developers.
    snap-id: Ee7LGphwQR669pcfCCdl0oJQouta69to
    channels:
      latest/stable:    4.3.1 2020-11-08 (1286)  83MB -
      latest/candidate: ↑                             
      latest/beta:      ↑                             
      latest/edge:      4.3.1 2021-03-04 (1297) 123MB -
    

    因此,snap 包的ffmpeg版本为 4.3(2021-02-20)。的deb包ffmpeg是3.4版(2020-07-04)。

    snap 包安全性的一个副作用是,您无法从/tmp/. 就是那个问题。

    • 2

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve