分类 Fedora 下的文章

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 -?

FreeMind is a free mind mapping application written in Java which runs on Microsoft Windows, Mac OS and Linux operating systems. I successfully installed in my Fedora 12 desktop. The following is the detailed steps.

1. Install Java Runtime Environment (JRE):
FreeMind requires pure Sun's Java Runtime Environment. Please refer this link to install Sun's JRE.

2. Add New Yum Repository:
First become root, create a temporary directory and CD to it.

There is a broken dependency at the moment in the SVG plugin so do this:

rpm --import http://www.jpackage.org/jpackage.asc
rpm --oldpackage -ivh http://ftp.heanet.ie/pub/jpackage/1.7/generic/RPMS.free/batik-1.6-3jpp.noarch.rpm

Now download all the rpms you want for freemind and put them in your temporary root directory.

There is no fedora support 10 and we are missing packages we need so.we will enable the generic repositories.

curl http://jpackage.org/jpackage17.repo | awk '/-generic/,/^$/ { sub("enabled=0","enabled=1"); print }' >/etc/yum.repos.d/jpackage17.repo

3. Install the Freemind:
yum --nogpgcheck -y localinstall freemind-*.rpm

Remove the temporary directory you made and start freemind :)

For more information about FreeMind and its installation, please visit: http://freemind.sourceforge.net/wiki/index.php/FreeMind_on_Linux.

Fedora came with OpenJDK Java Runtime Environment, which is a part of Fedora Project. However, many applications still require Sun's Java. When I tried to install FreeMind, a mind mapping software in Java, it required Sun's JRE. I installed the Sun's JRE as following steps successfully.

My environment is Intel Dual Core 32-bit CPU, 4GB Memory, Fedora 12.

1. Download:
Download the latest JDK or JRE at http://java.sun.com/javase/downloads/index.jsp. What I downloaded was jre-6u18-linux-i586.rpm.

2. Install:
Once download you will install the package with:
On x86:
su -c