Use one of the following procedures to install the Linux RealPort driver.
Note: The procedures in this topic should be used only in Linux environments that support the installation and building of packages from an RPM repository. The procedures require that the following RPM directories exist and are used by RPM on your Linux system.
| /usr/src/redhat/BUILD |
| /usr/src/redhat/RPMS |
| /usr/src/redhat/SOURCES |
| /usr/src/redhat/SPECS |
| /usr/src/redhat/SRPMS |
There are three methods of installing with RPM:
|
Method |
Description |
|---|---|
|
digirpm is a shell script designed to automate the build and installation process from a source RPM. This installation is fully automated. |
|
|
This method is still automated but there is user control at every step. |
|
|
This method is intended for use by users who wish to customize the installation (for example, to change the destination directories of certain tools). This method is the most complex and should be used only if necessary. |
Certain commands used in the following procedures need to be entered with the correct package version and revision number.
Note: To determine package version and revision numbers,
use this command:
rpm -qp filename
Example:
If the package version of the Linux driver is 1.0 and the revision is 2, then:
|
For this command variable: |
This value would be used: |
|---|---|
|
|
|
|
|
|
|
For this command: |
This would be entered: |
|
|
|
Use this procedure to install the RealPort Linux driver with digirpm.
sh digirpm filename
where filename is the name of the driver file.
Note: For more information about how to use the digirpm
tool, execute the command, sh digirpm -h.
Use this procedure to install the RealPort Linux driver without digirpm. See Package Version and Revision for important information on entering commands in this procedure.
rpm -ivv realport-version-revision.src.rpmThis command also copies the specification file (/usr/src/redhat/SPECS/realport-v.v.spec) to the SPECS directory.
cd /usr/src/redhat/SPECS
rpm -bb realport-version.spec
cd /usr/src/redhat/RPMS/arch
rpm -ivv realport-version-revision.arch.rpmThe
archvalue should be replaced with a string representing your architecture, such as i386 or alpha. This value is system dependent, and is chosen by your system when the RPM is built.Note: To install the RealPort driver on another system of the same architecture and Linux version, copy the following binary to the same location on the other system and execute the rpm command in this step:
/usr/src/redhat/RPMS/arch/realport-version-revision. arch.rpm
cd /usr/src/redhat/SPECS
rpm -bl realport-version.spec
Important: This custom installation procedure is reserved for those users that need to change a portion of the installation procedure or its contents in their specific environment. Reasons might include a need to change the directory where files are installed, or to modify the source code. Modifications to the source package may cause Digi to refuse support for that package in that environment.
See Package Version and Revision for important information on entering commands in this procedure.
rpm -ivv
realport-version-revision.src.rpm
This command also copies the specification file (/usr/src/redhat/SPECS/realport-version.spec) to the SPECS directory.
cd /usr/src/redhat/SPECS
rpm -bp realport-version.spec
The -bp option specifies that only the preparation section (%prep) of the specification file should be executed. This might result in the source files being uncompressed, removed from the archive, and placed in the following directory:
/usr/src/redhat/BUILD/realport-version
/usr/src/redhat/BUILD/realport-version
The specification file is named:
/usr/src/redhat/SPECS/realport-version.spec
Important: You should save the original version of any file that you change, plus the final version of the files after you make and test your changes. These backup copies should be placed somewhere other than in the /usr/src/redhat tree.
Important: If you change the final location of any of the files in the package, you must also update the %file list in the specification file. Otherwise, you will get a message that the installation was incomplete, because some files were not found.
Recommended: It is recommended that you document your changes in the %description section of the specification file.
cd /usr/src/redhat/BUILD
tar -cvzf ../SOURCES/realport-version.tgz
realport-version/*
Once the TGZ file has been replaced, you can proceed with step 3 of the Standard Installation Procedure.