LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-30-2017, 01:56 AM   #1
RuvenG
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
Updating Local Repository-Server


Hello everyone,

With all the SambaCry-Hype, I am trying to update my local repo-server at the moment.

(I am kind of new to this, so try to keep explanations as simple as you can, that would be much appreciated)

The problem is that although the packages are present the clients don't want to update/install when I tell them to.

They tell me that the latest version is already installed even though I know for sure that this isn't the case.

What I did so far:

On the Repo-Server:

reposync -n --repoid=ol6_latest

The repo-file:
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

It then downloaded about 8000 packages, problem was, I didn't execute it in the right dir, so I copied the files to the actual directory where the local repo points to, manually.

Now the file is in the "getpackage"-dir and can be seen when I look at the repo over my browser (apache), but I still can't update the package on the client, it still tells me the old version is the newest available.

So I cleaned the yum cache on the client and then started another "yum makecache" which obviously did something, but I still can't install the newest version.


Thanks in advance.
 
Old 05-30-2017, 06:30 AM   #2
RuvenG
LQ Newbie
 
Registered: May 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok, I was able to resolve the problem myself.

In case anyone ever happens to be stuck at this point:

after you do a reposync, never forget to do a createrepo.


I also had to perform a "yum clean all" on the clients in order to make it work.


Thanks.
 
  


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
how to access local repository containing software in one server from other server mahhipal Linux - Server 3 05-29-2015 09:45 AM
LXer: Create a local repository on ubuntu 13.04 server LXer Syndicated Linux News 0 05-31-2013 01:01 AM
local repository server hamd Linux - Newbie 11 05-03-2011 07:58 PM
updating redhat server from CentOS repository bajones Linux - Newbie 4 04-23-2009 08:04 PM

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

All times are GMT -5. The time now is 04:56 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
Open Source Consulting | Domain Registration