# osc usage

**URL:** <https://forums.suse.com/t/osc-usage/26550>\
**Category:** SLED Applications\
**Created:** [January 10, 2015, 1:42am UTC](https://forums.suse.com/t/osc-usage/26550 "2015-01-10T01:42:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagual\_sorcerer07](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nagual\_sorcerer07](https://forums.suse.com/u/nagual_sorcerer07)\
**Post date:** [January 10, 2015, 1:42am UTC](https://forums.suse.com/t/osc-usage/26550/1 "2015-01-10T01:42:42Z")

</div>

Dear all:  
I want to check out a source package which contains a certain file in my system:

rpm -qf /usr/lib/libX11.so.6.2.0  
xorg-x11-libX11-32bit-7.4-5.11.11.1

```
Then I want to know where is the source code repository:

```

rpm -q --qf '%{disturl}  
’ xorg-x11-libX11-32bit-7.4-5.11.11.1  
obs://build.suse.de/SUSE:SLE-11:Update:Test/standard/3d1355f7c5ba81093d1a105bfeb43be0-xorg-x11-libX11

osc co -r 3d1355f7c5ba81093d1a105bfeb43be0 SUSE:SLE-11:Update:Test/standard xorg-x11-libX11

```
The above [B]osc[/B] command does not work. I knew the instruction format would be the following --

```

osc co -r RELEASE\_HEX PROJECT\_NAME PACKAGE\_NAME

```
Can any one please help? I will appreciate.

             Joe
```

---

<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:** [January 10, 2015, 2:11am UTC](https://forums.suse.com/t/osc-usage/26550/2 "2015-01-10T02:11:31Z")

</div>

> [@](#):
>
> On Fri 09 Jan 2015 11:44:01 PM CST, nagual sorcerer07 wrote:
> 
> Dear all:  
> I want to check out a source package which contains a certain file  
> in my system:
> 
> RPM -QF /USR/LIB/LIBX11.SO.6.2.0  
> _-xorg-x11-libX11-32bit-7.4-5.11.11.1-_
> 
> Then I want to know where is the source code repository:  
> RPM -Q --QF '%{DISTURL}' XORG-X11-LIBX11-32BIT-7.4-5.11.11.1  
> _-obs://build.suse.de/SUSE:SLE-11:Update:Test/standard/3d1355f7c5ba81093d1a105bfeb43be0-xorg-x11-libX11-_
> 
> OSC CO -R 3D1355F7C5BA81093D1A105BFEB43BE0  
> SUSE:SLE-11:UPDATE:TEST/STANDARD XORG-X11-LIBX11
> 
> The above _osc_ command does not work. I knew the instruction format  
> would be the following –  
> osc co -r RELEASE\_HEX PROJECT\_NAME PACKAGE\_NAME
> 
> Can any one please help? I will appreciate.
> 
> Joe

Hi  
The system needs to be registered and add the online source repository  
(zypper will show srcpackage), else grab DVD2 which contains the src  
rpms.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-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!
