ffmpeg从centos 6.6卸载

时间:2015-03-16 03:12:22

标签: ffmpeg

我正在尝试删除ffmpeg并安装最新版本,但我无法将旧版本删除。这是尝试安装时的错误:

Transaction Check Error:
  file /usr/lib64/pkgconfig/libpostproc.pc from install of ffmpeg-devel-2    .2.1-65.el6.x86_64 conflicts with file from package ffmpeg-libpostproc-    0.6.5-1.el6.rf.x86_64
  file /usr/include/libpostproc/postprocess.h from install of ffmpeg-    devel-2.2.1-65.el6.x86_64 conflicts with file from package ffmpeg-    libpostproc-0.6.5-1.el6.rf.x86_64
  file /usr/lib64/libpostproc.a from install of ffmpeg-devel-2.2.1-65.el6    .x86_64 conflicts with file from package ffmpeg-libpostproc-0.6.5-1.el6    .rf.x86_64
  file /usr/lib64/libpostproc.so from install of ffmpeg-devel-2.2.1-65.    el6.x86_64 conflicts with file from package ffmpeg-libpostproc-0.6.5-1.    el6.rf.x86_64

有人可以帮我解决这个问题吗?我尝试了make ubinstall但是这不起作用,yum remove ffmpe g也没有,yum erase ffmpeg x264 x264-devel也没有。

1 个答案:

答案 0 :(得分:0)

如果您最初是从源代码安装软件包(通过 #make install):

#make uninstall

如果没有卸载,查看安装过程:

#make -n install

并反转安装过程:

  1. 卸载您安装的所有软件包(例如通过 #yum remove ffmpeg#cd ffmpeg_sources/ffmpeg/x264#make uninstall
  2. 删除所有创建的目录/文件

例如,这就是我最终做的:

#yum remove ffmpeg
#cd ffmpeg_sources/ffmpeg
#make uninstall
#make -n install
#cd ../x264
#make uninstall
rm -f /home/username/ffmpeg_build/include/x264.h /home/username/ffmpeg_build/include/x264_config.h /home/username/ffmpeg_build/lib/libx264.a
rm -f /home/username/bin/x264 /home/username/ffmpeg_build/lib/pkgconfig/x264.pc
rm -f /home/username/ffmpeg_build/lib/libx264.so.161 /home/username/ffmpeg_build/lib/libx264.so
rm -f /usr/share/bash-completion/completions/x264
#cd ../yasm
#make uninstall
#make -n install
#cd ../nasm
#make uninstall
#make -n install
#cd ../..
#rm -rf ffmpeg_sources
#rm -rf ~/ffmpeg_build
#rm -rf ~/bin