107
rpm -qa | grep -i
To search if a particular package with is installed on the system.
Installing from source files:
Most of the Open-Source application available under Linux is available as Source
Code which needs to be compiled at the users end. This approach may be time
consuming since compiling an application takes a quite an amount of time depending
on the complexity of the application. Installing from sources is a bit more complex
than installing from binaries, but still has it's benefits because it will allow one to
build based on the system you are running on. The applications compiled can be
significantly faster than the binaries downloaded since they are optimized for your
system. In some cases there may be situations when binaries are not available for your
Processor or Distribution and hence compiling application from the source is the only
option.
To install from source files:
Step 1: Download the source file from the Internet usually the source files are tar
archives. Extract it into a directory using the tar command.
Example if you download the file: examples-0.1.2.tar.gz
Extract with:
tar -xzvf examples-0.1.2.tar.gz
-x extract the file
-z unzip it (required for .gz files)
-v verbose, print the names of the files as they are extracted
For archives starting with .tar.bz2 use bunzip2 filename for extracting the file.
after extracting the file go into the directory of the created file and execute the configure
script which configures the packages source file according to your system and checks if all
the needed libraries are present, This tells how the software is to be compiled. If an error is
shown during the execution of configure script looks for the missing library and installs it
and then reruns the configure script. After completion of the configure script's execution
"Makefile" is created which is then used to compile the package.
Always check the Documentation that comes with the application for instructions specific to
the application.
./configure
Komentáře k této Příručce