Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Goto http://www.sunfreeware.com/, find and download the file unrar-3.68-sol10-x86-local.gz. To find the file, on the right site of your browser, click on the "Everything new or old" and then click on i386 directory in the middle of your browser, and finally on 5.11. Then gunzip the file.
I'm doing this from Windows, so I can't try it myself, if anyone can jump in here and make sure I'm correct.
Now you should have a file named unrar-3.68-sol10-x86-local. I think this is a package file, so you just pkgadd -d unrar-3.68-sol10-x86-local.
thanks for your reply
i followed your steps ...
after adding package i got some messages...
Code:
srinivas@opensolaris:~$ sudo pkgadd -d Desktop/unrar-3.68-sol10-x86-local
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
The following packages are available:
1 SMCunrar unrar
(x86) 3.68
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance <SMCunrar> from </export/home/srinivas/Desktop/unrar-3.68-sol10-x86-local>
unrar(x86) 3.68
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
Alexander Roshal
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
4 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing unrar as <SMCunrar>
## Installing part 1 of 1.
[ verifying class <none> ]
Installation of <SMCunrar> was successful.
srinivas@opensolaris:~$ unrar
bash: unrar: command not found
so means tht i installed properly...
but when i am tyoing unrar in command line ..it is saying command not found..
Well, first of all, the package was already installed, but you reinstalled it. I don't think that causes problems, but I don't really know that much about Unix yet. The reason that you got that message "bash: unrar: command not found", is because either the command in Solaris is NOT unrar, but it may be simply rar, or more than likely, it's because the command is not in your path. If you type echo $PATH at the command line, OS will show you the path that is set. Since I am new to Unix, and even newer than that to Solaris, I don't know if I can help you with changing the path. If I remember correctly, you edit the .profile file in your home directory. Someone else can step in here and help anytime, thanks.
Once you add the correct path variable to your path, the command should be available. There's a script provided by jlligre that will list directories which contain programs that aren't necessarily in your current path. It's here: http://www.linuxquestions.org/questi...prompt-639248/
I'm sure that the unrar/rar command is in one of those directories.
You can copy and paste the code and save as whatever name you want. Then you need to make the script file executable. The only way I know to do that is with the shell program Midnight Commander (command is mc) which you can search for and install with the GUI package manager that comes with Open Solaris. (This is actually the best way to install programs in Open Solaris, and the way you should have installed unrar). If you haven't used mc, move the cursor onto the file you just saved with the code in it, press F9, then 'f' for the file menu, and 'h' for cHmod, and then check the executable box. This gives you the name of the Unix command, chmod, which you can read the man page on and try to figure it out if you like. If you use mc to make it executable, mc shows you that it is an executable by changing the color of the file, and adding an * to the end or beginning (I don't pay that close of attention to it, and I'm in Windows now). Once the file is executable in Unix, it doesn't really mean you can actually run it YET (at least not like you may be used to in DOS/Windows). Then the program/script must be in one of the directories in the $PATH or you have to tell Unix (OpenSolaris in this case) where it is. If you are in the directory where the program is, you can execute it by adding a dot and slash to the beginning of the program like this: ./myprogram
You navigate to different directories in mc by moving the cursor onto the directory and pressing enter. If you want to go up dir, place the cursor on the .. dir at the top and press enter. The tab key moves the cursor to the other window in mc. F10 quits. Sorry I can't help more, I'm like the blind leading the blind because I'm still trying to learn Open Solaris too. BTW, mc will let you edit your .profile file, just select the file and press F4 to edit. After changing, press F2 to save, and quitting anything in mc is always F10.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
What you might want to do is:
Code:
$(unrarscript)
type -a unrar
And see what shows up. I would expect /usr/local/bin/unrar for sunfreeware stuff.
As PATH components order matters when variants of a command do exist, I wouldn't recommend using my script as is. OpenSolaris put /usr/gnu/bin first in the PATH to ease Gnu/Linux users but my script orders directories alphabetically which may lead to unexpected command being used.
thanks for your reply...
i have run command what you said..but..in the given output no where i found unrar...
please help me...
this is going to be very tough..it seems to be...in earlier i have used rhel,fedora..but i never spend this much time for configuring a small packages to works..
please help me out
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.