
新安裝 AlmaLinux 8 (r8.7 (Stone Smilodon))。我運行了以下命令來準備安裝 ffmpeg:
sudo dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum install yum-utils -y
sudo yum-config-manager --enable powertools
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm -y
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm -y
當我運行 Final 時sudo dnf install ffmpeg ffmpeg-devel
,出現以下錯誤:
Last metadata expiration check: 0:22:38 ago on Tue 25 Apr 2023 11:48:30 AM MDT.
No match for argument: ffmpeg
Error: Unable to find a match: ffmpeg
我已經在以前的機器和其他版本的 'Nix 上安裝並運行 ffmpeg,沒有任何問題,但這一個讓我難住了。我運行dnf repolist
並得到了這個:
repo id repo name
appstream AlmaLinux 8 - AppStream
baseos AlmaLinux 8 - BaseOS
dell-omsa-indep Dell OMSA repository - Hardware independent
dell-omsa-specific Dell OMSA repository - Hardware specific
dell-system-update_dependent dell-system-update_dependent
dell-system-update_independent dell-system-update_independent
elevate ELevate
epel Extra Packages for Enterprise Linux 8 - x86_64
extras AlmaLinux 8 - Extras
influxdata InfluxData Repository - Stable
influxdb InfluxDB Repository
powertools AlmaLinux 8 - PowerTools
所以存放庫存在且正確。
我不知道還能去哪裡檢查。這應該很簡單。有人可以幫我安裝這個嗎?
答案1
以下步驟對我有用:
dnf config-manager --set-enabled powertools
dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm -y
dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y
dnf install ffmpeg
你甚至不需要 epel。對於 ffmpeg,僅 powertools 和 rpmfusion 儲存庫就足夠了。