Menu

Installation via RPM packages

Dirk Krause
← Previous ↑ Home ↑ Installation Next →

Installation via *.rpm packages

Oracle Linux 9

Create packages

Download the software

As unprivileged user create the “Downloads” directory:

cd
[ -d Downloads ] || ( mkdir Downloads ; chmod 755 Downloads )

Place the dktools-4.39.1.tar.gz file in the “Downloads” directory.

Unpack archive

cd
cd Downloads
tar xzf dktools-4.39.1.tar.gz

We now have a new “dktools-4.39.1” directory.

Enable EPEL repository

For “DK tools” the wxGTK3-devel package is required to build. This package is not available in Oracle Linux 8.
One source for this package and it's dependencies is the EPEL repository.

If you want to keep your computer(s) at pure Oracle Linux without additional repositories enabled, I suggest to build the packages in a virtual machine. On the target machines install the CLI programs (dktools-cli) only, these packages do not depend on packages from outside Oracle Linux.

The steps to enable EPEL on Oracle Linux 8 are described at https://techviewleo.com/how-to-enable-epel-repository-on-oracle-linux/. The steps must be performed as root.
Short summary (as retrieved 2021-01-22):

Create the /etc/yum.repos.d/ol8-epel.repo file, contents:

[ol8_developer_EPEL]
name= Oracle Linux $releasever EPEL ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/developer/EPEL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

Update DNF cache:

dnf makecache

Install RPM containing repository information:

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

If questions are shown, confirm the installation of repositories and GPG keys.

Install required packages

As root install the required packages including developer and packager tools and build dependencies:

cd ~user/Downloads/dktools-4.39.1
sudo scripts/oracle-linux/rpm-prepare

Build packages

As unprivileged user build the packages:

scripts/oracle-linux/rpm-build

We should now have a large number of *.rpm files in the ${HOME}/rpmbuild/RPMS/x86_64 directory.

Packages available as local files

Install packages

As root install one of the following package sets.

To install all programs (GUI and CLI programs):

cd ~user/rpmbuild/RPMS/x86_64
~user/Downloads/dktools-4.39.1/config/rpmbuild/el8-install-dktools

To install the command line interface programs only:

cd ~user/rpmbuild/RPMS/x86_64
~user/Downloads/dktools-4.39.1/config/rpmbuild/el8-install-cli

Uninstall DK tools completely

As root run:

for i in `tac /usr/share/dktools/rpm-install-order.txt`
do
echo '#####' Uninstalling $i
dnf -C -y remove $i
done

Provide package repository

Set up web server

See https://docs.oracle.com/en/operating-systems/oracle-linux/8/obe-apache-install/ how to set up Apache on Oracle Linux 8.
You can skip setting up HTTPS and redirecting HTTP requests to HTTPS.

Create directory

As root run:

mkdir -p /var/www/html/el8/dktools
chmod 755 /var/www/html/el8
chmod 755 /var/www/html/el8/dktools

Modify Apache configuration

In the /etc/apache2/apache2.conf file below the

<Directory /var/www/>
        ...
</Directory>

section add a section:

<Directory /var/www/html/el8/>
        Options All Indexes FollowSymLinks
</Directory>

Restart the web server:

systemctl restart httpd

Create repository

cd /var/www/html/el8/dktools
cp ~user/rpmbuild/RPMS/x86_64/*.rpm .
rm *debuginfo*rpm
createrepo `pwd`

Update repository

Before placing upgraded versions of the packages in the repository you must delete the existing content of the repository directory.

rm -fr /var/www/html/el8/dktools/*
cd /var/www/html/el8/dktools
cp ~user/rpmbuild/RPMS/x86_64/*.rpm .
rm *debuginfo*rpm
createrepo `pwd`

Use repository

The following steps must be performed as root on the clients.

Configure clients to access repository

On the clients (computers intended to use this repository) add a file /etc/yum.repos.d/dktools.repo containing the following text:

[DKtools]
name=DK tools
baseurl=http://192.0.2.1/el8/dktools/
gpgcheck=0
enabled=1

Replace 192.0.2.1 by the servers IP address.

Update package metadata on clients

Run

dnf --refresh list 'dktool*'

to update package metadata and list some packages.
Alternatively run

dnf makecache

to rebuild the metadata cache or

dnf clean all

to remove all cached data. Recent package metadata is retrieved for all repositories on next dnf call needing metadata.

Install DK tools

To install all programs (GUI and CLI programs):

dnf install dktools

To install the command line interface programs only:

dnf install dktools-cli

Uninstall DK tools completely

for i in `tac /usr/share/dktools/rpm-install-order.txt`
do
echo '#####' Uninstalling $i
dnf -C -y remove $i
done

Systemd services

The “printqd” and “rshdown” packages contain services controled by systemd. Installation of these package just installs the software but does not enable or start the services.
Enable and start the services manually after customizing the configuration files.


Fedora 42

Create packages

Download the software

As unprivileged user create the “Downloads” directory:

cd
[ -d Downloads ] || ( mkdir Downloads ; chmod 755 Downloads )

Place the dktools-4.39.1.tar.gz file in the “Downloads” directory.

Unpack archive

cd
cd Downloads
tar xzf dktools-4.39.1.tar.gz

We now have a new “dktools-4.39.1” directory.

Install required packages

As root install the required packages including developer and packager tools and build dependencies:

cd ~user/Downloads/dktools-4.39.1
scripts/fedora/rpm-prepare

Build packages

As unprivileged user build the packages:

scripts/fedora/rpm-build

We should now have a large number of *.rpm files in the ${HOME}/rpmbuild/RPMS/x86_64 directory.

Packages available as local files

Install packages

As root install one of the following package sets.

To install all programs (GUI and CLI programs):

cd ~user/rpmbuild/RPMS/x86_64
~user/Downloads/dktools-4.39.1/config/rpmbuild/fedora-install-dktools

To install the command line interface programs only:

cd ~user/rpmbuild/RPMS/x86_64
~user/Downloads/dktools-4.39.1/config/rpmbuild/fedora-install-cli

Uninstall DK tools completely

As root run:

for i in `tac /usr/share/dktools/rpm-install-order.txt`
do
echo '#####' Uninstalling $i
dnf -C -y remove $i
done

Provide package repository

Set up web server

See https://fedoramagazine.org/install-apache-web-server-fedora/ how to set up Apache on Fedora.

Create directory

As root run:

mkdir -p /var/www/html/fedora41/dktools
chmod 755 /var/www/html/fedora41
chmod 755 /var/www/html/fedora41/dktools

Modify Apache configuration

In the /etc/apache2/apache2.conf file below the

<Directory /var/www/>
        ...
</Directory>

section add a section:

<Directory /var/www/html/fedora41/>
        Options All Indexes FollowSymLinks
</Directory>

Restart the web server:

systemctl restart apache2

Create repository

cd /var/www/html/fedora41/dktools
cp ~user/rpmbuild/RPMS/x86_64/*.rpm .
rm *debuginfo*rpm
createrepo `pwd`

Update repository

Before placing upgraded versions of the packages in the repository you must delete the existing content of the repository directory.

rm -fr /var/www/html/fedora41/dktools/*
cd /var/www/html/fedora41/dktools
cp ~user/rpmbuild/RPMS/x86_64/*.rpm .
rm *debuginfo*rpm
createrepo `pwd`

Use repository

Configure clients to access repository

On the clients (computers intended to use this repository) add a file /etc/yum.repos.d/dktools.repo containing the following text:

[DKtools]
name=DK tools
baseurl=http://192.0.2.1/fedora41/dktools/
gpgcheck=0
enabled=1

Replace 192.0.2.1 by the servers IP address.

Update package metadata on clients

Run

dnf clean all

to remove cached data. Recent package metadata is retrieved for all repositories on next dnf call needing metadata.

Install DK tools

As root install one of the following package sets.

To install all programs (GUI and CLI programs):

dnf install dktools

To install the command line interface programs only:

dnf install dktools-cli

Uninstall DK tools completely

for i in `tac /usr/share/dktools/rpm-install-order.txt`
do
echo '#####' Uninstalling $i
dnf -C -y remove $i
done

Systemd services

The “printqd” and “rshdown” packages contain services controled by systemd. Installation of these package just installs the software but does not enable or start the services.
Enable and start the services manually after customizing the configuration files.

← Previous ↑ Home ↑ Installation Next →

Related

Wiki: Installation

MongoDB Logo MongoDB