# Trying to install a package

**URL:** <https://forums.suse.com/t/trying-to-install-a-package/24273>\
**Category:** SLES Configure-Administer\
**Created:** [August 13, 2013, 10:44am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273 "2013-08-13T10:44:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian\_665](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@brian\_665](https://forums.suse.com/u/brian_665)\
**Post date:** [August 13, 2013, 10:44am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/1 "2013-08-13T10:44:51Z")

</div>

I am attempting to install the package libssh2-1 on the one SuSe Enterprise 11 Server we have. However, I am encountering considerable difficulties. I have (finally) managed to get zypper to recognise the repository but now it refuses to install the package.

I give it the command:

# zypper install libssh2-1

New repository or package signing key received:  
Key ID: B88B2FD43DBDC284  
Key Name: openSUSE Project Signing Key [opensuse@opensuse.org](mailto:opensuse@opensuse.org)  
Key Fingerprint: 22C07BA534178CD02EFE22AAB88B2FD43DBDC284  
Repository: Live Media Builds (standard)

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a  
Building repository ‘Live Media Builds (standard)’ cache [done]  
Loading repository data…  
Reading installed packages…  
‘libssh2-1’ not found.  
Resolving package dependencies…

Nothing to do.

Obviously it hasn’t installed the package. I have tried with other shorter and longer names and it still doesn’t install it.

Can someone please tell me where I’ve gone wrong? ☹

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [August 13, 2013, 2:32pm UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/2 "2013-08-13T14:32:53Z")

</div>

It sounds like you don’t have the required repos configured. Can you post the output of

`$ cat /etc/novell-release
$ zypper lr -u`  
Wrap the output in CODE tags for readability (look for the # button in the toolbar)

---

<div class="post-metadata">

**Author:** ![brian\_665](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@brian\_665](https://forums.suse.com/u/brian_665)\
**Post date:** [August 14, 2013, 3:10am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/3 "2013-08-14T03:10:54Z")

</div>

[QUOTE=mikewillis;15126]It sounds like you don’t have the required repos configured. Can you post the output of

`$ cat /etc/novell-release
$ zypper lr -u`  
Wrap the output in CODE tags for readability (look for the # button in the toolbar)[/QUOTE]

I don’t have a “novell-release”, I have a “SuSE-release” file:

`# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1`

[CODE]# zypper lr -u

# | Alias | Name | Enabled | Refresh | URI

–±-------------------±-----------------------------±--------±--------±------------------------------------------------------------------------  
1 | openSUSE\_11.4\_Live | Live Media Builds (standard) | Yes | No | [http://download.opensuse.org/repositories/openSUSE:/11.4:/Live/standard/](http://download.opensuse.org/repositories/openSUSE:/11.4:/Live/standard/)  
[/CODE]

That was the only repository I have been able to find (I suspect it’s the wrong one?).

---

<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:** [August 14, 2013, 11:54am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/4 "2013-08-14T11:54:05Z")

</div>

Hi Brian,

[QUOTE=brian\_665;15147]I don’t have a “novell-release”, I have a “SuSE-release” file:

`# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1`

[CODE]# zypper lr -u

# | Alias | Name | Enabled | Refresh | URI

–±-------------------±-----------------------------±--------±--------±------------------------------------------------------------------------  
1 | openSUSE\_11.4\_Live | Live Media Builds (standard) | Yes | No | [http://download.opensuse.org/repositories/openSUSE:/11.4:/Live/standard/](http://download.opensuse.org/repositories/openSUSE:/11.4:/Live/standard/)  
[/CODE]

That was the only repository I have been able to find (I suspect it’s the wrong one?).[/QUOTE]

yes, you’re trying to install a package compiled for openSuSE 11.4 on a SUSE Linux Enterprise 11 platform.

Taking some extra turns, you might try to install the SLES11SP1 SDK (btw, current code level is SLES11SP3), fetch the source RPM of your package and let it rebuild on your SLES11 machine. This might require providing other development packages not available for SLES11 though, and will take a few minutes to download and install the SDK. If you’re unfamiliar with compiling packages on Linux, this most likely is not the easiest path to walk on.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [August 14, 2013, 12:08pm UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/5 "2013-08-14T12:08:21Z")

</div>

[QUOTE=brian\_665;15147]I don’t have a “novell-release”, I have a “SuSE-release” file:  
[/QUOTE]  
Sorry, my mistake, I was thinking of SLED.

[QUOTE=brian\_665;15147]

`# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1`  
[/QUOTE]  
SLES 11 SP1 has been End Of Life for nearly a year. (Unless you purchased Long Term Service Pack Support.)

[QUOTE=brian\_665;15147]

[CODE]# zypper lr -u

# | Alias | Name | Enabled | Refresh | URI

–±-------------------±-----------------------------±--------±--------±------------------------------------------------------------------------  
1 | openSUSE\_11.4\_Live | Live Media Builds (standard) | Yes | No | [http://download.opensuse.org/repositories/openSUSE:/11.4:/Live/standard/](http://download.opensuse.org/repositories/openSUSE:/11.4:/Live/standard/)  
[/CODE]  
That was the only repository I have been able to find (I suspect it’s the wrong one?).[/QUOTE]  
It is indeed the wrong one. If you’ve been installing packages from that repo, you should remove them. You can get a list of currently installed packages which aren’t from the SLES repos with

`$ rpm -qa --queryformat '%{name} %{vendor}\
' | grep -v "SUSE LINUX Products GmbH, Nuernberg, Germany" | cut -d ' ' -f 1`  
If you’ve installed lots of packages from that repo, doing a clean install may be easier.

You shouldn’t need to be looking for repositories, they should be set up automatically when you register your machine. (Run YaST look for Novell Customer Centre Configuration.) Have you got a registration code? If not you can get a 60 day evaluation code along with an iso for SLES 11 SP3 from [https://www.suse.com/products/server/](https://www.suse.com/products/server/)

---

<div class="post-metadata">

**Author:** ![brian\_665](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@brian\_665](https://forums.suse.com/u/brian_665)\
**Post date:** [August 15, 2013, 4:28am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/6 "2013-08-15T04:28:42Z")

</div>

[QUOTE=mikewillis;15151]Sorry, my mistake, I was thinking of SLED.

SLES 11 SP1 has been End Of Life for nearly a year. (Unless you purchased Long Term Service Pack Support.)

It is indeed the wrong one. If you’ve been installing packages from that repo, you should remove them. You can get a list of currently installed packages which aren’t from the SLES repos with

`$ rpm -qa --queryformat '%{name} %{vendor}\
' | grep -v "SUSE LINUX Products GmbH, Nuernberg, Germany" | cut -d ' ' -f 1`  
If you’ve installed lots of packages from that repo, doing a clean install may be easier.

You shouldn’t need to be looking for repositories, they should be set up automatically when you register your machine. (Run YaST look for Novell Customer Centre Configuration.) Have you got a registration code? If not you can get a 60 day evaluation code along with an iso for SLES 11 SP3 from [https://www.suse.com/products/server/](https://www.suse.com/products/server/)[/QUOTE]

All I want to do is install a single package. I neither have the time nor the interest (nor I must admit the expertise in SuSE and SAP) to replace the entire OS. I can still find packages for other distributions years, even decades after they have reached their “end-of-life”. Why is SuSE different?

---

<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:** [August 15, 2013, 4:47am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/7 "2013-08-15T04:47:44Z")

</div>

> [@](#):
>
> On Thu 15 Aug 2013 01:34:02 AM CDT, brian 665 wrote:
> 
> mikewillis;15151 Wrote:[color=blue]
> 
> > Sorry, my mistake, I was thinking of SLED.
> > 
> > SLES 11 SP1 has been End Of Life for nearly a year. (Unless you  
> > purchased Long Term Service Pack Support.)
> > 
> > It is indeed the wrong one. If you’ve been installing packages from  
> > that repo, you should remove them. You can get a list of currently  
> > installed packages which aren’t from the SLES repos with[color=green]
> > 
> > > [/color][/color]  
> > > Code:  
> > > --------------------[color=blue][color=green]  
> > > $ rpm -qa --queryformat '%{name} %{vendor}  
> > > ’ | grep -v “SUSE[/color][/color]  
> > > LINUX Products GmbH, Nuernberg, Germany” | cut -d ’ ’ -f 1  
> > > --------------------[color=blue][color=green]  
> > > [/color]  
> > > If you’ve installed lots of packages from that repo, doing a clean  
> > > install may be easier.
> > 
> > You shouldn’t need to be looking for repositories, they should be set  
> > up automatically when you register your machine. (Run YaST look for  
> > Novell Customer Centre Configuration.) Have you got a registration  
> > code? If not you can get a 60 day evaluation code along with an iso  
> > for SLES 11 SP3 from [https://www.suse.com/products/server/](https://www.suse.com/products/server/)[/color]
> 
> All I want to do is install a single package. I neither have the time  
> nor the interest (nor I must admit the expertise in SuSE and SAP) to  
> replace the entire OS. I can still find packages for other  
> distributions years, even decades after they have reached their  
> “end-of-life”. Why is SuSE different?

Hi  
You can grab it from the OBS Server Monitoring repository (all  
unsupported of course and may not pass a security audit);

```auto
zypper ar -f http://download.opensuse.org/repositories/server:/monitoring/SLE_11.1/ Server:Monitoring
zypper ref
zypper in libssh2-1
```

The repositories are still present if you have an active subscription,  
just not updated anymore…

## I would disable the other repository you added.

Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.3 (x86\_64) Kernel 3.7.10-1.16-desktop  
up 11:35, 3 users, load average: 0.99, 0.55, 0.44  
CPU AMD E2-1800@1.70GHz | GPU Radeon HD 7340

---

<div class="post-metadata">

**Author:** ![brian\_665](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@brian\_665](https://forums.suse.com/u/brian_665)\
**Post date:** [August 15, 2013, 6:50am UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/8 "2013-08-15T06:50:41Z")

</div>

Thank you. That was exactly what I was looking for.

---

<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:** [August 15, 2013, 1:04pm UTC](https://forums.suse.com/t/trying-to-install-a-package/24273/9 "2013-08-15T13:04:18Z")

</div>

> [@brian\_665;15203](#):
>
> All I want to do is install a single package.

That’s not how I see it. You’re trying to add something to a distribution that is not supported (the specific package on that distribution) per se and out of the box.

> [@brian\_665;15203](#):
>
> I neither have the time nor the interest (nor I must admit the expertise in SuSE and SAP) to replace the entire OS.

Which is perfectly understandable and the reason why people pay money to get a stable and supported version of an OS, rather than having to struggle with all sorts of updates, bug fixes, new features etc.

> [@brian\_665;15203](#):
>
> I can still find packages for other distributions years, even decades after they have reached their “end-of-life”. Why is SuSE different?

It isn’t. And while we’re at it - SuSE ain’t SLES ain’t openSUSE.

You’re asking for some extra, unsupported package for an “end of standard support” professional product (SLES11SP1). If someone had already spent the time to build & publish it, you may find and use it (and yes, the other response pointed you to such a package). But SLES comes with a standard set of features - which is a cost for maintenance and stability during the full product life span. People usually don’t extend SLES with some system library, as it may very well cost them the “supported” status of their installation.

This doesn’t work other than for other professional systems - and if you compare it with typical closed source systems, then you’ll see that it works much better. After all, you got your package and even didn’t have to find someone to port it to your specific platform (which may have been as easy as recompiling the source RPM via a single command, or as cumbersome as having to set up a compile machine first and then porting a multitude of other packages that your target package relies on).

OTOH, what counts is that your problem got solved.

Regards,  
Jens
