Problem installing rar and unrar

Good day all,

I am trying to install rar and unrar on fedora 16.

In terminal root, when I try to do :
# cp rar unrar /bin

I get the following error message:
cp: cannot stat `rar': No such file or directory
cp: cannot stat `unrar': No such file or directory

can anyone please suggest something to help.
-peter

I suspect it means what it says -- they're not in the same folder as your terminal is looking inside.

Where do you have these files?

hi Corona,

Please keep in mind I am extremely new to Linux.
I made to attempts to get it to work , without success.

1) Firstly, I tried to be in "bin" folder:

[root@peterpc bin]# cp rar unrar /bin
cp: cannot stat `rar': No such file or directory
cp: cannot stat `unrar': No such file or directory

2) In the 2nd attempt ,I also tried to be in the "rar" folder :
[peter@peterpc rar]$ cp rar unrar /bin
cp: cannot create regular file `/bin/rar': Permission denied
cp: cannot create regular file `/bin/unrar': Permission denied

can you suggest anything?

appreciate the help,
peter

You need to be in whatever folder rar and unrar are in. I don't know where that is, not being able to see your computer from here.

Surely it's somewhere under your home folder, though. Try this:

cd ~/
find . -type f -name rar

That will hunt for any file named 'rar' anywhere inside you home directory or any of its subfolders.

~/ is short-form for your home-folder, so it'd amount to cd /home/myusername

would you recommend:

$ sudo cp rar unrar /bin

since this may give me permission?

If you have found the files, then yes.

Though I might suggest /usr/bin instead of /bin. /bin sometimes isn't in a normal user's PATH so could be annoying to use.

thanks. rar works.

I am now looking for the extracted files. The name of the file that was extracted is "Math43.iso"

Without success ,I am trying to use the "find" command to locate it :
$ find . -type f -name Math

thanks
-peter

---------- Post updated at 07:48 PM ---------- Previous update was at 07:47 PM ----------

correction :

$ find . -type f -name Math43

---------- Post updated at 09:35 PM ---------- Previous update was at 07:48 PM ----------

please ignore this last messgae , since my .rar file was corrupt.

thanks for the help

In any case, find doesn't work that way. You were looking for the exact name there. Find supports wildcards, as long as they are in single quotes.

find ~/ -name '*.iso'