LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Alias exists from removed app (https://www.linuxquestions.org/questions/linux-newbie-8/alias-exists-from-removed-app-598613/)

jchambers 11-10-2007 11:47 AM

Alias exists from removed app
 
Hello --

I am trying to get rid of the alias.


I did:

apt-get remove ffmpeg
dpkg -r ffmpeg
dpkg --purge ffmpep


But I still get:

# ffmpeg
-bash: /usr/local/bin/ffmpeg: No such file or directory

I tried to find it with grep but I was not successful.

Is there a way to remove this?

Thank you

matthewg42 11-10-2007 11:54 AM

Start a new shell and see if you get the same thing there. If you do, verify if "ffmpeg" is an alias (do this in the newly-started shell):
Code:

type ffmpeg
What does that command output?

jchambers 11-10-2007 12:02 PM

It's gone.

I did not know that... so is caches it for that session?


One more question...

So I installed ffmpeg from source at first then removed it and used apt-get. Would that cached alias/path corrupt an isntall that used ffmpeg? Because I kept getting errors.

I am going to reboot and try again.

Thank you for the help.

matthewg42 11-10-2007 12:14 PM

AFAIK it shouldn't cause a problem with the package manager. I've never heard of anything like that, and I don't think it is the case. I think you must have encountered some other problem.

jchambers 11-10-2007 12:30 PM

Ok thank you.

I have tried so many variations that I may have done some damage at this point... going to reinstall and try that.

beanerjo 11-11-2007 06:32 AM

Perhaps you ran ffmpeg on the terminal you removed ffmpeg. That terminal still remembers ffmpeg. If you open a new terminal, it will be gone. You can try this: (i) create /usr/local/bin/aaa which contains

Quote:

#!/bin/sh
ls
(ii) chmod +x /usr/local/bin/aaa, (iii) run aaa, (iv) rm /usr/local/bin/aaa, (v) run aaa again. See if you get the same error message. There should be a simple command to clear this "cache" but I don't know what it is.

jchambers 11-11-2007 08:21 PM

It was cached..?
I opened a new ssh session and it was gone.
Anyway thank you for the tips.
I had corrupted my system with too many experiments and had to reinstall.
I guess if it's painful you remember not to do that again.. ;)


All times are GMT -5. The time now is 02:52 PM.