Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
generally all packages require you to be root to install them, however, in RH8, if it is an RPM file, it will simply prompt you for the root password, so you don't need to log in as root. I never log in as root, and always use the su command instead.
if you want to know about the su command, or if it's not an RPM, just ask
Thanks so much for your reply. (Scotland? I'm jealous!)
I tried to run the rpm command in the terminal without using su to root and received what looks like permission errors.
warning: tomcat4-4.0-1.noarch.rpm: V3 RSA/MD5 signature: NOKEY, KeyId 697ecedd
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm
It looks like these are issues stemming from not being root.
Should I use su - root and then run the rpm -ivh command on the tomcat package?
Thank you for your reply. I ran the rpm command as root as you suggested and did not receive any error messages. It was later that I discovered that the file was the wrong one. For those reading this post, the correct file to install tomcat is a gnu tar.
I used jakarta-tomcat-4.1.27-LE-jdk14.tar.gz to work with my pre-installed jdk 1.4. I ran the tar command as root and it installed.
just running the tar command as root does not usually install, it just extracts. (in this case, as the RPM was "noarch" it may well have doen though) - if the RPM installed ok, it shopuld be on your system allready.
usually with .tar.gz files you need to compile it:
# make install
right, noarch refers to the architecture.
since RPM files usually contain binary files (which have to be compiled for a particular architecture, e.g. mac (PPC) or intel clone (ix86)) the file must identify which architecture it is for. The convention is to name files as follows:
where arch is the architecture. you probably use a PC so probably will use i386, i586, i686, or ix86.
"noarch" means the package will run on any platform, because it usually means it does not contain any binary files.
"src" means it contains source code and has to be built with the rpmbuild --rebuild command before installing.