LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What happens if files are extracted and installed in wrong directory? (http://www.linuxquestions.org/questions/linux-newbie-8/what-happens-if-files-are-extracted-and-installed-in-wrong-directory-701752/)

gogoskiracer 02-02-2009 06:35 PM

What happens if files are extracted and installed in wrong directory?
 
I downloaded a bunch of codecs for ffmpeg and didn't really know what I was doing, so just placed them in a folder ~user/download/ and installed them there. I'm having trouble with ffmpeg and the packages I installed.

Several tutorials talk about installing to /usr/local/src/.

Is it a problem if I haven't?

Can I just mv all the files from ~user/download/ to /usr/local/src/?

Or delete all the files at ~user/download/?

Or just re-download and install the files at /usr/local/src/ without worrying about uninstalling from the other directory first?

I tried several uninstall techniques (make uninstall, rpm -e {package_name}, yum uninstall {package_name}) and none of those recognized the package...

Thanks for any input on the matter!

jailbait 02-02-2009 07:32 PM

The first thing I would do is to remove all of the files you created in ~user/download/. Just delete them. However these files may not be all of the files that the package installed.

The next thing that I would do is convert your ffmpeg source package to a rpm package using the checkinstall program. Checkinstall is probably in your distribution repository. If not here is the freshmeat entry for checkinstall.

http://freshmeat.net/projects/checkinstall/

Then use yum or rpm to install the ffmpeg rpm package you created. This install will overwrite any stray ffmpeg files that you did not delete in the first step. The install will also register ffmpeg properly in your rpm data base so that in the future you can keep track of ffmpeg using yum.

-------------------
Steve Stites

amani 02-02-2009 08:30 PM

Why do you want to use the source packages?

Simply install it with yum from rpm-fusion

Which codecs?

gogoskiracer 02-02-2009 09:23 PM

Quote:

Originally Posted by amani (Post 3429724)
Why do you want to use the source packages?

Simply install it with yum from rpm-fusion

Which codecs?

As far as I can tell the source packages are all that are available for these items.... Can yum install packages that are supposed to be installed with './configure; make; make install;' ?

I want to include the xvid, lame mp3, and x264 codecs. Do these have to be linked to ffmpeg in some special way, or do I just install them and ffmpeg can find them when needed?

Thanks!

jailbait 02-03-2009 01:03 PM

Quote:

Originally Posted by gogoskiracer (Post 3429764)

Can yum install packages that are supposed to be installed with './configure; make; make install;' ?

No. You use checkinstall to convert the package to a rpm package which yum can install.

-------------------
Steve Stites


All times are GMT -5. The time now is 06:53 PM.