By default, Rar is not available in Fedora 10. If all you need to do is extract files from a Rar archive, unrar from RPM Fusion's YUM repositories will work. If you need to create Rar archives, then you will have to download and install the complete Rar package from DAG. The instructions below show you how.
Only Need to Extract Files?
First, install RPM Fusion's free and nonfree YUM repositories. For detailed information about installing RPM Fusion, see: http://rpmfusion.org/Configuration
su -c "rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"
su -c "rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"
Next, install the unrar packages from RPMFusion's nonfree repository.
su -c "yum install unrar"
Done! You now have unrar in /usr/bin/unrar. This binary can only extract files from Rar archives. Use this command to see all available options:
/usr/bin/unrar -?
Need to Create Rar Archives?
First, download the source RPM from DAG: http://dag.wieers.com/rpm/packages/rar
wget -c http://dag.wieers.com/rpm/packages/rar/rar-3.5.1-1.rf.src.rpm
Now, install the source RPM. This will create a $HOME/rpmbuild tree. Please note that you do not need to be root.
rpm -iv rar-3.5.1-1.rf.src.rpm
Next, build a binary package in $HOME/rpmbuild. Again, no need to be root.
rpmbuild -bb ~/rpmbuild/SPECS/rar.spec
Finally, install the built RPM as root:
su -c "rpm -Uvh $HOME/rpmbuild/RPMS/$(arch)/rar-3.5.1-1.rf.x86_64.rpm"
Done! You now have rar in /usr/bin/rar. This binary can build and extract Rar files. Use this command to see all available options:
/usr/bin/rar -?
Comments
Excellent, I was looking
Excellent, I was looking around for how to unrar stuff in Fedora and I found your blog. Its been a lifesaver.
It was just perfect to
It was just perfect to install.. ty
The first section, "...only
The first section, "...only extract files" worked for me on my Fedora 10.
I knew the yum command, but I didn't have a clue about the other two rpm's.
I followed your instructions
I followed your instructions to build the source rpm and when installing I get this.
error: Failed dependencies:
libstdc++.so.5 is needed by rar-3.5.1-1.rf.i386
libstdc++.so.5(CXXABI_1.2) is needed by rar-3.5.1-1.rf.i386
libstdc++.so.5(GLIBCPP_3.2) is needed by rar-3.5.1-1.rf.i386
but fedora 10 i386 only has version 4.3.2
Fix by updating
Fix by updating libstdc++:
issuing: yum install libstdc++.so.5 worked, results:
Downloading Packages:
compat-libstdc++-33-3.2.3-64.i386.rpm | 224 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : compat-libstdc++-33 1/1
Installed:
compat-libstdc++-33.i386 0:3.2.3-64
After that, the built rpm installed. Trick it to *save* the rpm and library for future builds as I see nothing that dependant on F10.
Didn't work for me
Didn't work for me too......
The error message was a long one..... couldn't even update the repos.....
the unrar worked but the
the unrar worked but the method for rar did not worked, but i found a different solution for it. go to
http://rapidshare.com/files/262413501/rar_for_f10.zip download the zip file extract it u will find a .rpm file install it and u can create rar archives.
(ignore the missing signature message while installing this file)