How to install Jenkins on CentOS 7. On March 3, 2018 by Amir Leave a comment. Jenkins is an Open-Source automation software (a fork of Hudson) which can help you automate repetitive technical tasks involved in the continuous integration and delivery of software. Jenkins is written in JAVA language an currently focusing on two main.
This article explains how to install a .deb package on CentOS Linux 7. Although there are many ways to do this, here is one.
Here’s how this story started.
In a land far far away, someone walked over to a PC with CentOS Linux 7. It has Mozilla Firefox, but a finicky web application requires them to use Google Chrome. Their system administrator downloaded Chrome for Linux from Google. Because they did not carefully read, they mistakenly downloaded a .deb file. Most people would squawk at this point, because CentOS repositories use .rpm files, not .deb files. Bad sys’admin. No cookie for you.
What can we do?
The best solution would be to download the .rpm package from Google.
For the sake of example, let’s pretend that all we have to work with is the .deb package, and that we want to install that package on CentOS Linux 7.
Although these instructions apply to .deb packages in general, let’s continue with the above example and download a .deb package for Google Chrome.
- Open a web browser.
- Go to:
https://www.google.com/chrome/browser/desktop/index.html - Download Chrome.
- When you are prompted to “select your download package”, accept the default choice of “64 bit .deb (for Debian/Ubuntu)”. You will then get a .deb file.
Assume that you already have CentOS Linux 7 and the EPEL repository.
All of the commands from here on in must be run as the root or super user. If you have sudo access, then prepend “sudo” to the command.
Install EPEL Packages
Install the alien and rpmrebuild packages from the EPEL repository.
yum install –enablerepo=epel rpmrebuild
Convert Package from .deb to .rpm Format
To convert the .deb file to a .rpm package, run:
alien –to-rpm –scripts google-chrome-stable_current_amd64.deb
If you try to install the new Red Hat package by running:
yum localinstall google-chrome-stable-59.0.3071.115-2.x86_64.rpm
Transaction check error:
file / from install of google-chrome-stable-59.0.3071.115-2.x86_64 conflicts with file from package filesystem-3.2-21.el7.x86_64
file /usr/bin from install of google-chrome-stable-59.0.3071.115-2.x86_64 conflicts with file from package filesystem-3.2-21.el7.x86_64
file / from install of google-chrome-stable-59.0.3071.115-2.x86_64 conflicts with file from package filesystem-3.2-21.el7.x86_64
file /usr/bin from install of google-chrome-stable-59.0.3071.115-2.x86_64 conflicts with file from package filesystem-3.2-21.el7.x86_64
rpmrebuild -pe google-chrome-stable-59.0.3071.115-2.x86_64.rpm
In that text editor:
- Search for %dir.
- Delete the %dir lines for / and /usr/bin.
- Save changes and quit the text editor.
Do you want to continue?
Enter “y” to rebuild the package. You will see a few warnings.
This will create a new package in a different directory.
Pay attention to the result. For example:
Pay attention to the result. For example:
result: /root/rpmbuild/RPMS/x86_64/google-chrome-stable-59.0.3071.115-2.x86_64.rpm
Install Red Hat Package
Run:
yum localinstall google-chrome-stable-59.0.3071.115-2.x86_64.rpm
warning: %post(google-chrome-stable-59.0.3071.115-2.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package google-chrome-stable-59.0.3071.115-2.x86_64
Non-fatal POSTIN scriptlet failure in rpm package google-chrome-stable-59.0.3071.115-2.x86_64
![Install Install](/uploads/1/2/5/7/125799677/565735553.jpg)
Despite the warning, Google Chrome should now be installed.
The above steps gave me Google Chrome on CentOS Linux 7. It runs happily.
To be clear, if you want Google Chrome, do not go through all of this pain. You can download the .rpm file and easily install that as-is. However if you have a .deb package, you can install that using a procedure like above.
Thank you for reading this article.
If you found it useful, please feel free to share it with others.
Reference Articles:
![How To Install Jedit On Centos 7 How To Install Jedit On Centos 7](/uploads/1/2/5/7/125799677/118697295.jpg)
Advertisements