first coming to disadvantage there is no direct command to install this source file on Linux server so for new baby it very difficult to install the packages and coming to advantage we can compile this source packages to whatever platform we want so we are now going to see how to create compiled packages for different platforms from source files
here are the links for my the previous RPM management topics. one two.
Step1: To create RPM packages from source we require two packages
GCC compiler
rpm-build
install these two packages
Step2: After installation of above packages install the source package which you want to compile
#rpm -ivh packagename.src.rpm
When we install the above src package we will get .specs file in /usr/src/redhat/SPECS which will contain all the details to create the required.
Step3: Now we got the spec file in order to specify the platform type etc
#cd /usr/src/redhat/SPECS
Step4: Create rpm package
#rpm-build -bb packagename.spec –target i386
this command will build a package which can be installed on i386 platform
Latest posts by Surendra Anne (see all)
- Docker: How to copy files to/from docker container - June 30, 2020
- Anisble: ERROR! unexpected parameter type in action:
Fix - June 29, 2020 - FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018