Solved

How do I upgrade with yum on SME using a local repository?

Posted on 2011-03-17
7
796 Views
Last Modified: 2012-05-11
I want to be able to upgrade from SME 7.5.1 to SME 8 beta6 but I want to be able to do this using a local repository.
I've tried combining the steps here: http://wiki.contribs.org/SME_Server_8 with: http://wiki.contribs.org/Yum_local_repository but I've run into a few snags and am not that familiar with yum.
0
Comment
Question by:jasonzx
  • 3
  • 3
7 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35159217
Create a new yum repository

vi /etc/yum.repos.d/sme.repo

And insert the following

[SME]
name=My personal repo
baseurl=<location>    <---This directory should contain the repodata folder and is preceded by file:/// or ftp:// or http://
gpgcheck=0
enabled=1

0
 
LVL 3

Expert Comment

by:Alberto Cortes
ID: 35159219
This is the official recommendation from SME:
"If you have previously installed a server and now wish to upgrade to version 7, you can do so while preserving your configuration data. To do so, select Upgrade from the appropriate screen in the installation process."
0
 

Author Comment

by:jasonzx
ID: 35164373
farzanj: I'm not sure if SME does something a little different or I missed a step when using that method but when I tried it, it seemed to skip my repo entirely and download the files needed.

RicoCebiche:I understand this isn't the 'official' way of doing it but if I install a server in 8 months, I want it to be consistent with everything else in use. Also, I've had a repository go down and had to scramble to find a file I needed.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:jasonzx
ID: 35181128
Maybe I'm not creating the repository properly. I basically copied the /var/cache/yum folder.
Is there another better way of getting it directly from the site? Specifically just the branch for 8, not the entire repository.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35181463
Your repo file should be in location I told previously.

 /etc/yum.repos.d/sme.repo

Did you create the file in this location as I described before?  Did it still not work?
0
 

Author Comment

by:jasonzx
ID: 35300109
farzanj:
Yes, but what about getting the 8-beta-6 branch from the repository to my local machine?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35300633
For making a local repository, you should have RPMS.

You can download RPMs or if you already have them, you would need to create a folder and put them there.
Suppose you put them in location /rpms/sme

Then you need to create a file /etc/yum.repos.d/local.repo

In that file you need to type
[SME]
name=My personal repo
baseurl=file:///rpms/sme
gpgcheck=0
enabled=1

Open in new window


Repo is built.
If you have rpms, copy them to  /rpms/sme
YOU ARE DONE

IF YOU NEED TO DOWNLOAD
If you don't have RPMS, you can download them

To do that first you need to do this

yum install yum-downloadonly

Open in new window


 
yum -y update <NAME> --downloadonly --downloaddir=/rpms/sme

Open in new window

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

760 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

18 Experts available now in Live!

Get 1:1 Help Now