LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-19-2018, 03:52 PM   #1
bkelly
Member
 
Registered: Jan 2008
Distribution: Ubuntu 16.04 LTS
Posts: 38

Rep: Reputation: 9
Translate Ubuntu install scripts to Red Hat


In my little corner of government work I must take some install scripts to install an SDK that includes QT Creator into Ubuntu and make them install the SDK on Red Hat. We will have either the latest or next to latest version of Red Hat. The scripts are currently written for Ubuntu 14.04 and are in bash.

I am very new to Linux and ask if anyone already knows of any “gotch-yahs” or other specific things that I need to be aware of.

I have discovered that there is a -x option that logs the activity of the script. The site I found does not indicate that the script can be stepped through one statement at a time. Can that be done?

Last edited by bkelly; 01-19-2018 at 04:43 PM.
 
Old 01-19-2018, 10:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,612

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
What script and what SDK are you trying to install? If the script/SDK is not a unique to your world then it might be available through the RH repositories.

If your corner is is part of the US government then you should have a RH subscription and therefore your IT people should be able to help.
 
Old 01-22-2018, 10:30 AM   #3
bkelly
Member
 
Registered: Jan 2008
Distribution: Ubuntu 16.04 LTS
Posts: 38

Original Poster
Rep: Reputation: 9
The scripts are to install an SDK and are a bit involved. There are six files, one appears to be preparatory and installs multiple standard packages such as putty and bison. It is a series of
Code:
sudo apt-get -y install <stuff>
The other installs their custom SDK and installs QT Creator. The local guys are not really heavy on Linux. I now presume my best bet is to just copy each command from the script and paste into a terminal window so I can immediately see the results of each step. Either that or put an echo statement and a pause in at each step.

Thanks for taking the time to reply.
 
Old 01-22-2018, 11:03 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,612

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
The big difference is that Ubuntu uses apt-get and RH uses yum to install packages. Depending on the package it might not be in the RH standard repositories. Different distributions/versions use different library versions etc. yum should resolve dependencies and install all that is required. If a package is unavailable in a standard repository it might be in another repository or you might need to install from source files. The later can pose a few problems.

Ubuntu is based on debian and therefore the locations of files is not the same as RH. Ubuntu 14 uses upstart, RH 6 uses upstart and RH 7 uses systemd. If some initialization scripts need to be installed you might run into problems.
 
Old 01-22-2018, 05:56 PM   #5
bkelly
Member
 
Registered: Jan 2008
Distribution: Ubuntu 16.04 LTS
Posts: 38

Original Poster
Rep: Reputation: 9
Hello michaelk,
Your comments about apt-get and yum look quite important. That is where I will start.
Thank you for taking the time to read and post.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Red Hat powers cloud-scale DevOps with the general availability of Red Hat Cloud Suite and Red Hat OpenStack Platform 8 LXer Syndicated Linux News 0 04-20-2016 05:20 PM
Check dependency and install application from internet in red-hat,ubuntu,cent-os . prasad1990 Linux - Newbie 6 05-01-2015 09:20 AM
I need a job scheduler (for shell scripts) for Red Hat AS 4, suggestions? Luism Linux - Enterprise 2 04-11-2008 02:33 PM
can't install ubuntu or red hat awsnowy Linux - Newbie 3 10-05-2006 01:12 PM
red hat startup scripts problem tdavid6789 Linux - Newbie 5 09-25-2000 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration