LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2014, 01:40 PM   #1
linux_student_007
LQ Newbie
 
Registered: Jul 2014
Posts: 7

Rep: Reputation: Disabled
Smile Need shell script for upgrading the openssl package


Hi Team,

I have to upgrade openssl package to latest version as part of MITM(Man In The Middle vulnerability).

I am planning to write a shell script that will automate the whole upgrade process. Below are the steps I do manually.
1.I have to take backup of my present repo in the server.
2.Configure latest repo that will provide the openssl required version.
3.yum update openssl -y
4.reboot
5.once after reboot, have to replace the old repo that was taken as backup.

I am new to shell scripting. I can write small scripts by adding set of commands.

But in the above scenario is something new, can anyone please help to write the script or provide me script.


Thanks,
Linux-Student
 
Old 07-22-2014, 01:43 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,204

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
No. But you can try to write one, and people here will help if you get stuck or have questions.
 
Old 07-22-2014, 01:47 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,478

Rep: Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089
Take it one step at a time.

How do you take a backup of your present repo in the server? How can you automate it?
 
Old 07-22-2014, 03:07 PM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,338
Blog Entries: 11

Rep: Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311Reputation: 2311
Why are you wanting to backup something you know is vulnerable to attacks?
 
Old 07-22-2014, 03:12 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,204

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
I think he means he wants to make a backup of the current 'repo' setup, and restore it later.

In that case, you really need to look at yum usage, because there is no point in permanently disabling, or modifying the config. You can use:

Code:
yum --disablerepo=* --enablerepo=new_repo install openssl
To temporarily disable ALL repos, then immediately enable 'new_repo' and install openssl from it.

Note: When you put in your temporary repo to install the new OpenSSL, the format of the file is like this:

Code:
[new_repo]
name=Whatever
baseurl=http://whatever
enabled=0
 
1 members found this post helpful.
  


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
install of openssl-0.9.8b-8.3.el5 conflicts with file from package openssl-0.9.8b-8.3 jsaravana87 Linux - Server 1 09-26-2011 01:02 PM
how to install software package using shell script +property file..... badmas Linux - Newbie 3 04-16-2011 02:12 AM
writing a shell script for running a package from IRAF. ghasem Programming 1 01-11-2011 01:08 AM
package uninstallation by shell script nik1984 Programming 6 09-19-2007 07:18 AM
upgrading openssl bentz Linux - Software 1 05-19-2007 01:23 AM


All times are GMT -5. The time now is 10:36 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