刚才安装codeblocks没有安装成功,我在想是不是因为我没有使用su命令进入超级用户模式
1 Become root by running su and entering the super-user password.
2 Uninstall any earlier installations of the Java packages.
rpm -e <package_name>
3 Change to the directory in which you want to install. Type:
cd <directory path name>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java
4 Install the package.
rpm -ivh jre-7u7-linux-i586.rpm
To upgrade a package,
rpm -Uvh jre-7u7-linux-i586.rpm
5 Delete the .rpm file if you want to save disk space.
6 Exit the root shell. No need to reboot.