# Local Repo without using SMT

**URL:** <https://forums.suse.com/t/local-repo-without-using-smt/25780>\
**Category:** SLES Updates\
**Created:** [June 23, 2014, 4:02pm UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780 "2014-06-23T16:02:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamfleming](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@williamfleming](https://forums.suse.com/u/williamfleming)\
**Post date:** [June 23, 2014, 4:02pm UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780/1 "2014-06-23T16:02:49Z")

</div>

Is there a way to get a local repo without using the SMT server. We already have a local repo for lots of distros and would like to keep SLES there as well, but i cant run rsync on the novell repo’s like any other due to the auth…

Does anybody else do this, would rather avoid running another machine just to have SMT running.

Thanks  
William

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [June 23, 2014, 6:14pm UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780/2 "2014-06-23T18:14:25Z")

</div>

> [@](#):
>
> On Mon 23 Jun 2014 01:04:01 PM CDT, williamfleming wrote:
> 
> Is there a way to get a local repo without using the SMT server. We  
> already have a local repo for lots of distros and would like to keep  
> SLES there as well, but i cant run rsync on the novell repo’s like any  
> other due to the auth…
> 
> Does anybody else do this, would rather avoid running another machine  
> just to have SMT running.
> 
> Thanks  
> William

Hi  
What is the host OS? All I can think of is wget or perhaps spacewalk  
(the tools package and spacewalk-repo-sync).

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![williamfleming](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@williamfleming](https://forums.suse.com/u/williamfleming)\
**Post date:** [June 24, 2014, 2:49pm UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780/3 "2014-06-24T14:49:27Z")

</div>

Well its a centOS machine that hosts lots of our internal repos and for simplicity sake wanted to keep SLES on there as well. Would be good just to get a rsync in cron with the others…

Will spacewalk just seems excessive for this job, as does SMT server. wget doesn’t work over https to the Novell mirror & its not available over http.

Cheers  
William

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [June 24, 2014, 7:49pm UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780/4 "2014-06-24T19:49:47Z")

</div>

William,

as I use wget in https context from time to time, would you mind to share why/how “wget doesnt’ work over https” for you? Maybe it’s just a question of setting the proper parameters for certificate verification?

With regards,  
Jens

---

<div class="post-metadata">

**Author:** ![williamfleming](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@williamfleming](https://forums.suse.com/u/williamfleming)\
**Post date:** [July 15, 2014, 11:36am UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780/5 "2014-07-15T11:36:03Z")

</div>

[QUOTE=jmozdzen;22170]William,

as I use wget in https context from time to time, would you mind to share why/how “wget doesnt’ work over https” for you? Maybe it’s just a question of setting the proper parameters for certificate verification?

With regards,  
Jens[/QUOTE]

Sorry got this fixed. Not the most elegant solution but I have local repos set up nicely now. Just using a ridiculous wget command to pull the mirrors. And the https comment from me earlier was incorrect. I just created all my local repo files and then push them out via ansible. And then mount the NFS share on each server. Below is the wget command for creating the local repo.

```auto
wget -r -np -m -e robots=no https://nu.novell.com/repo/\\$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/ --user xxxxx --password=xxxxx
```

Only problem with this technique is because SUSE do not provide a rsync server for pulling the repo. Which is ridiculous imho. You will end up with lots of old files in your directory every time a new version comes out as wget see’s it as a new file and pulls it. So i just purge the directory every couple of weeks and do a fresh pull. Ignoring the robots file is the key part, it allows you to wget the repo 🙂

Regards  
William

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [July 15, 2014, 1:26pm UTC](https://forums.suse.com/t/local-repo-without-using-smt/25780/6 "2014-07-15T13:26:06Z")

</div>

Hi William,

> [@williamfleming;22579](#):
>
> SUSE do not provide a rsync server for pulling the repo. Which is ridiculous imho.

it seems SUSE decided that they want SMT (or SUSE Manager) as the local agent, as that fits into the registration work flow… I’m not judging nor defending that decision since it’s just that: their decision 🙂

Regards,  
Jens
