# Local Store - SLES 11

**URL:** <https://forums.suse.com/t/local-store-sles-11/27210>\
**Category:** SLES Updates\
**Created:** [July 1, 2015, 10:19pm UTC](https://forums.suse.com/t/local-store-sles-11/27210 "2015-07-01T22:19:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgevisentini](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jorgevisentini](https://forums.suse.com/u/jorgevisentini)\
**Post date:** [July 1, 2015, 10:19pm UTC](https://forums.suse.com/t/local-store-sles-11/27210/1 "2015-07-01T22:19:27Z")

</div>

Hello, sorry my english… I am trying to make a local store here in the company.  
I used createrepo command.  
At the repository zypper it functioned normally, but the Yast2 not. The Yast2 does not recognize the repository.

The repository is configured to use Apache.

Below as was my .repo file:

[Suse-11-SP3-Base-x86\_64]  
name=Suse-11-SP3-Base-x86\_64  
enabled=1  
autorefresh=1  
baseurl=http://192.168.1.1/suse\_11\_SP3/base/x86\_64/  
type=rpm-md  
keeppackages=0

[Suse-11-SP3-Dir3-x86\_64]  
name=Suse-11-SP3-Dir3-x86\_64  
enabled=1  
autorefresh=1  
baseurl=http://192.168.1.1/suse\_11\_SP3/dir3/x86\_64/  
type=rpm-md  
keeppackages=0

Can anyone give a hand?

Thanks!

---

<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:** [July 1, 2015, 11:19pm UTC](https://forums.suse.com/t/local-store-sles-11/27210/2 "2015-07-01T23:19:34Z")

</div>

> [@](#):
>
> On Wed 01 Jul 2015 07:24:01 PM CDT, jorgevisentini wrote:
> 
> Hello, sorry my english… I am trying to make a local store here in the  
> company.  
> I used createrepo command.  
> At the repository zypper it functioned normally, but the Yast2 not. The  
> Yast2 does not recognize the repository.
> 
> The repository is configured to use Apache.
> 
> Below as was my .repo file:
> 
> -[Suse-11-SP3-Base-x86\_64]  
> name=Suse-11-SP3-Base-x86\_64  
> enabled=1  
> autorefresh=1  
> baseurl=[http://192.168.1.1/suse\_11\_SP3/base/x86\_64/](http://192.168.1.1/suse_11_SP3/base/x86_64/)  
> type=rpm-md  
> keeppackages=0-
> 
> -[Suse-11-SP3-Dir3-x86\_64]  
> name=Suse-11-SP3-Dir3-x86\_64  
> enabled=1  
> autorefresh=1  
> baseurl=[http://192.168.1.1/suse\_11\_SP3/dir3/x86\_64/](http://192.168.1.1/suse_11_SP3/dir3/x86_64/)  
> type=rpm-md  
> keeppackages=0-
> 
> Can anyone give a hand?
> 
> Thanks!

Hi  
I’m assuming that in directory base and dir3 is where you ran the  
createrepo command? Did it create a repodata directory?

How did you add the repository on the machine, via zypper or YaST?

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel  
3.12.43-52.6-default 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:** ![jorgevisentini](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jorgevisentini](https://forums.suse.com/u/jorgevisentini)\
**Post date:** [July 1, 2015, 11:50pm UTC](https://forums.suse.com/t/local-store-sles-11/27210/3 "2015-07-01T23:50:35Z")

</div>

Hello,  
within the DIR3 have the folder architecture (x86\_64).

I ran the createrepo with the full path:  
createrepo /srv/www/htdocs/repositorios/suse\_11\_SDK\_SP3/base/x86\_64

The repodata is in the x86\_64 directory

What happens is that with zypper works installing packages and the full update (zypper update).  
Yast works by installing packages, but the Online Update does not work.

---

<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:** [July 2, 2015, 12:38am UTC](https://forums.suse.com/t/local-store-sles-11/27210/4 "2015-07-02T00:38:57Z")

</div>

> [@](#):
>
> On Wed 01 Jul 2015 08:54:01 PM CDT, jorgevisentini wrote:
> 
> Hello,  
> within the DIR3 have the folder architecture (x86\_64).
> 
> I ran the createrepo with the full path:  
> createrepo /srv/www/htdocs/repositorios/suse\_11\_SDK\_SP3/base/x86\_64
> 
> The repodata is in the _x86\_64_ directory
> 
> What happens is that with zypper works installing packages and the full  
> update (zypper update).  
> Yast works by installing packages, but the Online Update does not work.

Hi  
OK, so all the rpm’s are in the x86\_64 directory?

I normally would dump all the rpm’s in their respective noarch, src and  
x86\_64 directories under in your case base, then in base run;

```auto
createrepo .
```

so then have the directories and a repodata directory, now every time  
you add rpm(s) the createrepo command needs to be run…

Looking at my SLED 11 SP3 test system, YaST Online Update only shows  
patches…

So what are you seeing, just no updates showing from those local repos?

You also won’t see updates from the local repos until something is  
installed (eg rpmA) and then an update preset (eg rpmA\_updated). Or the  
system rpm ‘switched’ to use the rpm from you local repository.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel  
3.12.43-52.6-default If you find this post helpful and are logged into  
the web interface, please show your appreciation and click on the star  
below… Thanks!
