Solved

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

Posted on 2014-09-30
2
310 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
2 Comments
 
LVL 34

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Article by: Swadhin
Introduction of Lists in Python: There are six built-in types of sequences. Lists and tuples are the most common one. In this article we will see how to use Lists in python and how we can utilize it while doing our own program. In general we can al…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now