Solved

Script to add external repository for centOS-updates, update BASH then remove the external repository?

Posted on 2014-09-30
2
312 Views
Last Modified: 2014-10-03
We have multiple servers that utilize internal REPO's that are locked. These servers range from versions centOS 5.7 to 6.5. Is there a way to write a script that can be executed that:

1. Add external repository (centOS-updates mirrors for example)
2. Update BASH to latest using YUM or rpm -Uvh
3. Remove the lines added initially for an external repository
0
Comment
Question by:meade470
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 40352778
i would make a copy of the repo file then append the file with the repo info, do yum then remove the main (modified) file and rename the original back to what it was
0
 
LVL 19

Accepted Solution

by:
NickUpson earned 500 total points
ID: 40356770
I'd just copy the bash rpm file to each server and then run "yum localupdate bash.rpm" - job done
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Anisble /Python queation how to find what  "argument of type 'NoneType' is not iterable" 4 54
HOw To Install Docker on VMware Workstation 19 350
Redhat upgrade 1 48
Linux 3 38
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question