centos,rhel , Will application built on RHEL6.4 be able to run on Centos 6.4 unupdatedly

Will application built on RHEL6.4 be able to run on Centos 6.4 unupdatedly


Tag: centos,rhel

I learn that RHEL and Centos has the exact same source code. So my question here is if one application built for RHEL 6.4, could we just install and make it running on Centos 6.4 without any update?

And another question is RHEL and Centos will always use the same version number for the same source code, right?


Yes, software built on RHEL 6.4 should work as-is on CentOS 6.4 (assuming you don't depend on one of the relatively few RHEL-specific details, mostly to do with branding).

CentOS, except where necessary, uses upstream RHEL sources unmodified. When they need to modify a package they indicate that in the release notes and in the release field of the RPM in question.


Error while installing Odoo

Finished Dependency Resolution Error Package: odoo-8.0_20150617-1.noarch (odoo-nightly) Requires: python(abi) = 2.7 Installed: python-2.6.6-52.el6.x86_64 (@base) python(abi) = 2.6 Available: python-2.6.6-51.el6.x86_64 (test) python(abi) = 2.6 trying using --skip-broken to work around the problem trying running: rpm -Va --nofiles --nodigest Steps Which I Followed installed the pstgresql 9.4.4 updated the python 2.6 to...

Bash script to find && mkdir

Scenario I'm switching IMAP client on a mail server for several thousands domains with following structure : Mail folder location: /home/mail/domains (just an example) Maildir for domain1.com contains following folders: (again just an example) .Sent.2002.May .Sent.2002.June .Personal.Home.Jack Maildir for domain2.com contains .Sent.2008.June .Emails.Test.test2 Maildir for domain3.com contains .Sent.2012.Files .Archive.2014.May Problem:...

How to add 100MB of swap space as a logical volume in CentOS?

I need to add 100MB of swap space to my machine. I was trying to use a logical volume. # lvcreate –name lv_swap2 –size 100M vg # mkswap /dev/vg/lv_swap2 # swapon /dev/vg/lv_swap2 # vi /etc/fstab /dev/vg/lv_swap2 swap defaults 0 0 It doesn't work... Need help!...

How to print a result from multiple root elements in XML using Perl

I'm starting out with Perl and doing all the bad things you can with the language. This program is using XML::Simple and Regular Expressions which the internet says do not do unless you hate yourself. Ok, the plan is to read an XML file from a website and read off...

rpmbuild no such file or directory

I'm just learning making rpm packages for some custom builds of software that gets compiled from source (some legacy stuff needs this, so I'm trying to learn, as some packages can't use the latest versions), but hitting an error (I'm doing this in Vagrant, and also as root, but typically...

Warning everytime login remote server

The following warning shows up everytime when I login a remote server using ssh [email protected]_server, anyone knows why and how to fix it? Warning: the RSA host key for 'HOSTNAME' differs from the key for the IP address 'IP ADDRESS' Offending key for IP in /home/haifzhan/.ssh/known_hosts:15 Matching host key in...

phpseclib loadKey works on mac, not on CentOS

I am attempting to load a hardcoded (for the sake of testing) RSA public key in phpseclib (stable version 0.3.10). This code works perfectly correctly when run locally on my Mac and spits back out the key I entered: CONST PUBLIC_KEY = '-----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYwTO/CJJQ8vbwTRQRWmOS0Pbz tFCks4RhmPxYANSQV5V9Qy+QSupewn2WAb7zV04r4RqtwxB7stDMbK+uPY+GYR5M moQuT0YStJ6TXJjiF8i1Y+DBGLnTXOD36y93V8DpuFWMxMYtROskE+Mx1W70+VTZ EM6k+jvIfzRJoVDqswIDAQAB -----END...

RHEL Java application - specific name instead of generic java process

I have a custom Java application running on my RHEL machine. I am running this Java application from a bash exec script with all the parameters and options appended. As a result, my Java application gets a generic name "java" in the system processes which is not useful for me...

How can I read iso-8859-1 file

I try to read File.java file with iso-8859-1 encoding . I executed command like this iconv -f ISO-8859-1 FileSorter.java -t ASCII//TRANSLIT but I still get some wrong characters after converting: /** * Yoio iaoia auiieiyao ni?oe?iaeo nienea oaeeia * @param fileList iaioni?oe?iaaiiue nienie oaeeia * @return ioni?oe?iaaiiue nienie oaeeia */...

How can I use GoogleMock in jenkins?

I installed Jenkins on a CentOS vm. Now I want to run unittests (google test) with mocks (google mock). I tried installing the frameworks like described here. (On my lubuntu machine everything runs without a problem using these steps) When I try to build: g++ -O2 -pthread -Werror -Wall -o...

RHEL - can't sudo from script

I have a script where I'm trying to change user (from root) on boot. In /etc/rc.d/rc.local, I've changed it to cd into the script dir and execute it. It all works except for when it tries to execute: sudo -u newuser ./myscript.sh I get an error message: sorry, you must...

RHEL + Codeception: invalid mit-magic-cookie-1 keyerror cannot open display :2.0

So I'm trying to run Codeception acceptance tests on a Linux server (with Selenium). I enter the command: ./codecept run acceptance (with flags such as --env firefox-linux) Codeception starts, pauses for a bit and then Firefox throws this error: Invalid MIT-MAGIC-COOKIE-1 keyError: cannot open display: :2.0 I read that this...

FIPS integrity verification test failed when iniating SSH session

I recently enabled the FIPS module under CentOS 6 (minimum install). Module is confirmed working: cat /proc/sys/crypto/fips_enabled yields 1 openssl md5 somefile(fails) and openssl sha1 somefile(succeeds). openssl version yields OpenSSL 1.0.1e-fips 11 Feb 2013 When I attempt to ssh into a box I connect to daily, I now see a...

Knife ec2: need to avoid re-boostraping of server after hostname change

I might be doing something wrong, but here is the situation. Standalone Chef server 12.3.0. CentOS 6.3 running on AWS. During execution of knife bootstrap I am applying hostname:default recipe to change server's FQDN along with some other recipes. Everything iseems to be fine. Chef server shows newly boostrapped instance,...

Installing vnstat on CentOS 6 shows “No package vnstat available”

I'm trying to install vnstat on CentOS 6. I used the command found in the docs 'yum install vnstat' but it shows the below: [[email protected] ~]# yum install vnstat Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors * base: mirror.its.dal.ca * extras: mirror.its.dal.ca * updates: mirror.its.dal.ca base |...

Ocamlfind command not found

I'm running into an issue installing a package that's reliant on ocamlfind but I'm getting an ocamlfind: command not found error when making. I have installed ocamlfind with the ocaml package manager and have tried reinstalling using "opam reinstall ocamlfind". I have also tried the 'eval opam config env' command...

PhpStorm 8.0.3 crashing itself and Windows Samba share

I access the code on my CentOS VM through a Samba share on my Windows machine. I have been using PhpStorm for a while now, however this morning I have been unable to use PhpStorm to access the Samba share. When PhpStorm loads it shows a blank screen (no project...

plesk when upgrading php, will this break everything?

I'm running a VPS with centOS, plesk 12 and PHP5.3. I'm looking to upgrade to a more recent version of php but without taking down all my sites running on that server. I've tried through the plesk GUI and got to this point which is ambiguous to what it will...

How to resolve dependencies while installing application on linux (CentOS 7.1)

When I tried install deluge on my CentOS 7.1 I was facing dependecy problems due to some el6 which are not meant for CentOS 7.1. So, I found this page: https://gist.github.com/dasgoll/111f6f3364e2ab97bc08 His instructions: Centos 7.1 yum -y install wget wget hxxp://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm yum -y install deluge-web systemctl start...

__git_ps1 shows wrong branch

I'm getting an issue where the __git_ps1 script returns the wrong branch. First, I'll check my branches: [email protected] ssalisbury (master)$ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master Then I'll create and checkout a new branch, and the __git_ps1 script will still show that I'm on my original branch:...

Point domain to wordpress folder in ec2 amazon centos

I have my site hosted at I have registered domain gabifrc.org from aws I'm using httpd24 on crentos I have set following configurations in /etc/httpd/conf/httpd.conf file. It seems to change the DocumentRoot but doamin is not in use. How can i point it to the doamin. <VirtualHost *:80> ServerAdmin...

IP Messenger for CentOS 7

I'm Using CentOS 7 and trying to install IP messenger in it but not able to install it. Can anyone help me in installing any IP messenger. Any kind of help would be appreciated. Thanks.

Compile and install php5.4, make: *** [libphp5.la] Error 1

I am trying to build PHP with the following build configuration: ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-openssl --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/include/libxml2/libxml --enable-xml --enable-sockets --with-apxs2=/usr/local/httpd/bin/apxs --with-mcrypt --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-bz2=/usr/bin/bzip2 --enable-maintainer-zts and...

Access denied while running Mysql for the first time on Centos

I just installed Mysql for the first time on a CentOS machine using yum. The installation had no errors. Then I followed those steps: $ sudo /sbin/service mysqld start --skip-grant-tables --skip-networking $ sudo /usr/bin/mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE!...

How to check all versions of python installed on osx and centos

I just started setting up a centos server today and noticed that the default version of python on centos is set to 2.6.6. I want to use python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper...

WordPress.org and Vanilla Forums on 1 VPS

I am looking at setting up a blog and a forum. I will be using WordPress.org for the blog and Vanilla Forums for the forum. I could buy two VPSs but if I can get it to work on 1 VPS then that would be better. I would like to...

How to delete files from directory using rm -rf?

I have directory exam with 2 files in it. I need to delete files but permission is denied. Even ![rm -rf][1] command can't delete these files. I logged in as a root user. # rm -rf exam_a # rm -rf exam_b ...

ffmpeg convert any file to any file

I Want simple command to convert any supported file to any file with little possible video compression. for example avi to mp4 mp4 to 3gp . .etc.. I tried below code ffmpeg -i infile.flv outfile.3gp It works for some but for some other like flv to 3gp conversion it throws...

Puppet Learning VM with Jenkins CI installation

I am trying to set up Jenkins CI in Puppet Learning VM ( CentOS 6.5 x86 ), but I cannot make yum to see openjdk 1.7.0 packages, therefore jenkins puppet fails. I have tried adding epel repo - still yum says no package available. I have changed pluginconf to disable...

Slow CURL CentOS7 with “same” link

I just installed CentOS7 (3.10.0-229.4.2.el7.x86_64) with nginx (1.8.0). Here my hosts file: [[email protected]_main1 ~]# cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 arm.site.com kpp.site.com w.site.com server.site.com And problem: [[email protected]_main1 ~]# time curl http://arm.site.com/test/fad/site/site?siteId=152 {"OK"} real 0m0.162s user 0m0.003s sys 0m0.003s [[email protected]_main1 ~]# time curl...

SMTP(500 Access Denied) Error but i can send mail to gmail or hotmail

I can successfully send email to Gmail or Hotmail accounts but cannot send email like [email protected] mail adresses. I use exim on CentOs server. When i send the email I get this error: SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=5598: host example.com [XX.XXX.X.63]: 550 Access denied -...

installation of compiler gfortran in centos 6

I try to install some compilers. I use Centos 6 in my laptop. I have installed the gcc, the "GNU" C Compiler. I need to install also gfortran, but when I type yum install gfortran, I get the message no package gfortran available. Do you know how can I install...

EC2 root volume expansion for CentOS7

My EC2 is running with CentOS 7 HVM community image which comes default as xfs file system, and I had a root volume with 10GB which I extended to 15GB after detaching > creating snap > reattaching to /dev/sda1 but I noticed that I did not had to run any...

How to install extencion in magento on ssh

How do I install a Connect 2.0 extension to my local development box without using the /downloader UI? How can I script this in a deployment routine?

I can't convert with ImageMagick

I'm using ImageMagick to convert a PDF file. I use this PHP snippet: $cadena = "/usr/local/bin/convert -density 100 -colorspace rgb ".$name_path." ".$images_path."/convert.png"; shell_exec($cadena); where $name_path is the PDF file directory and $images_path is the images directory. This code in console (CentOS) works perfectly. But when I try to use shell_exec()...

How To Restore a Missing Redis Service

I installed an older version of Redis on a CentOS server. I tried to remove that old version and update it to latest version, but it seems that the redis service is gone and the new version installation doesn't reproduce it. Is there any way I can uninstall the Redis...

Java 8 , JCE Unlimited Strength Policy and SSL Handshake over TLS

With Java 8, server which only supports TLSv1, it fails to make secure socket connection from cent OS Version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) Source import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocketFactory; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;...

Cannot find a package in yum repo list

I'm looking for tomcat-native (Centos 6) $sudo yum install tomcat-native No package tomcat-native available. Error: Nothing to do How do I update the yum repository list?...

erl with centos “Failed to create main carrier for ll_alloc”

i am having a centos vps. i have installed erlang by the command rpm -Uvh erlang-17.4-1.el6.x86_64.rpm Now whenever i try to run my rabbitmq-server. or i just issue erl command then i get this error. Failed to create main carrier for ll_alloc Aborted is it some memory issue erlang is...

db:migrate (PostgreSQL) fails on Rails deployment with Capistrano

I'm a complete noob to deploying Rails and even more new to PostgreSQL. I'm running a CentOS 6.6 server and my deployment tasks keep failing with the following db:migrate errors: cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: rake exit status: 1 rake stdout: /var/www/rally_app/shared/bundle/ruby/2.2.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line...

What's the Command to purge/delete all contents in all “public_html” folders?

What's the Command in CentOS to purge/delete all contents in ALL "public_html" folders for all users at once? (I have my web server that I just cloned to make it into a mail server, but I don't want too keep all the public_html files)

Install php-devel

I would like to install php-devel on my server(CentOS 6.5). yum install php-devel However, I encountered the following error. Error: php54-cli conflicts with php-cli-5.3.3-40.el6_6.x86_64 Error: php54 conflicts with php-5.3.3-40.el6_6.x86_64 Error: php54-common conflicts with php-common-5.3.3-40.el6_6.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va...

IF statement not working in RHEL 6 (workd in RHEL 5)

I have a simple if statement that works fine in RHEL 5, but for some inexplicable reason, fails in RHEL 6: if [[ ! $1 =~ "(one|two|three)" ]] ; then echo -e "\n***Invalid number" usage exit 1 else action=$1 fi I can use a case statement which works fine or...

How to use mock with epel-7

I have been trying to create a chroot for epel-7 using mock. Following this link: http://miroslav.suchy.cz/blog/archives/2015/05/20/why_mock_does_not_work_on_el_6_and_el7_and_how_to_fix_it/index.html I changed my .cfg file. Now when I tr to create chroot, I get the following error: sudo ./create_chroot.sh epel-7 INFO: mock.py version 1.2.8 starting (python version = 2.7.8)... Start: init plugins INFO: selinux...

Unable to start postgresql service in Redhat linux 7

I have installed postgresql 9.4 on Redhat 7 server.It was installed through postgresql-9.4.3-1-linux-x64.run. It displayed a clear message"postgres is installed your machine". Now when I login as su - postgres It doesn't ask for password and goes to bash prompt. If I type psql displays "command not found". When I...

While loop in bash using variable from txt file

I am new to bash and writing a script to read variables that is stored on each line of a text file (there are thousands of these variables). So I tried to write a script that would read the lines and automatically output the solution to the screen and save...

WkHTMLtoPDF PHP exec xvfb-run: Error: xauth command not found

I want to generate a PDF from a URL, so I execute the command by WkHTMLtoPDF as below: /usr/bin/xvfb-run --server-args="-screen 0, 1920x1080x24" /usr/local/bin/wkhtmltopdf http://www.google.com /tmp/google.pdf 2>&1 The above command works fine on Terminal, But when I invoke the command inside PHP failed! And show me an error message as below:...

How to make this webserver only accessible to your machine and server1.example.com?

I set up a default configuration webserver. And now I can't make this webserver accessible only to my machine and server1.example.com. # chkconfig httpd on # service httpd start echo “This is a test.? > /var/www/html/index.html # iptables -I INPUT -m state –state NEW -m tcp port 80 -j ACCEPT...

.htaccess not redirecting web site to https

I am running Apache/2.2.15 on Centos 6.6 and am using a free certificate from StartCom. My home page file is /var/www/index.php so I create a file /var/www/.htaccess with the following content, as suggested here. RewriteEngine On # This will enable the Rewrite capabilities RewriteCond %{HTTPS} !=on # This checks to...

autoexpect on docker centos6.6 container cannot work

Docker container pure image: centos6.6 after bash, I install these: yum -y install tar zip unzip expect glibc.i686 Package expect- already installed and latest version and run autoexpect, I always get these error: [[email protected] bin]# autoexpect autoexpect started, file is script.exp no such variable (read trace on "env(SHELL)") invoked from...