linkple.blogg.se

Rhel rpm
Rhel rpm











sh file, will modify our spec file accordingly. Since we are building a RPM to package a.

rhel rpm

View the files create so far by using tree ~/rpmbuild/ command as shown below. Move the generated spec file inside the SPEC dir of rpm build structure using below command. Interface.spec created type minimal, rpm version >= 4.11.

rhel rpm

Using below command we will first generate the spec template which then will be modified based on our requirements. interface-0.0.1]# cd BUILD]# tar -czf interface-0.0.1.tar.gz interface-0.0.1Ĭopy the tar inside SOURCES directory. Once script is created, we will next create tar by following certain rules which RPM build package manager expects. BUILD]# mkdir BUILD]# cd interface-0.0.1]# cat > interface.sh Inside it, we will create a new directory which RPM package expects and then we will place our script inside newly created directory. Firstly, switch to the BUILD directory like below. Below script will simply check if a network interface on a machine exist or not. sh file which we will then package and create a rpm of it.

rhel rpm

Use below command to create a RPM file tree. To verify installed rpms, use below command. We will install another rpm called rpmlint which helps in validating and checking our. yum install rpmdevtools yum install rpm-build yum install tree -y These rpms helps in building the package and perform many check on them. We will first install few pre-requisite rpms for our tutorial like below. How To Create And Install RPM Package on RHEL / CentOS / Rocky LinuxĪlso Read: How to Install InfluxDB2 on Ubuntu 20.04 LTS In fact we can share our build scripts with others by packaging into RPM. Using RPM we can package our scripts/files for easy installation and modification in our machine. These files can be any like, configuration files, binary files or documentation files etc.

rhel rpm

RPM stands for Red Hat package manager which is a collection of files.













Rhel rpm