Searching and installing package on SLES – Suse Enterprise Linux ?

In this article, we will see how to search and install a package in SUSE Enterprise Linux Server.

1. Search for the package in repository.

ngelinux001 /home/user% zypper search libjpeg
Loading repository data...
Reading installed packages...

S  | Name            | Summary                                                               | Type
---+-----------------+-----------------------------------------------------------------------+--------
i+ | libjpeg62       | The MMX/SSE accelerated JPEG compression/decompression library        | package
   | libjpeg62-devel | Development Tools for applications which will use the Libjpeg Library | package
i  | libjpeg8        | The MMX/SSE accelerated JPEG compression/decompression library        | package
i  | libjpeg8-32bit  | The MMX/SSE accelerated JPEG compression/decompression library        | package
   | libjpeg8-devel  | Development Tools for applications which will use the Libjpeg Library | package


For an extended search including not yet activated remote resources you may run 'zypper
search-packages' at any time.
Do you want to run 'zypper search-packages' now? [yes/no/always/never] (no): yes

Following packages were found in following modules:

Package                   Module or Repository                                                       SUSEConnect Activation Command
------------------------  -------------------------------------------------------------------------  -----------------------------------------------------------------
libjpeg62-debuginfo       Basesystem Module (sle-module-basesystem/15.2/x86_64)                      SUSEConnect --product sle-module-basesystem/15.2/x86_64
libjpeg8-debuginfo        Basesystem Module (sle-module-basesystem/15.2/x86_64)                      SUSEConnect --product sle-module-basesystem/15.2/x86_64
libjpeg8-32bit-debuginfo  Desktop Applications Module (sle-module-desktop-applications/15.2/x86_64)  SUSEConnect --product sle-module-desktop-applications/15.2/x86_64
libjpeg-turbo             SUSE Package Hub (PackageHub/15.2/x86_64)                                  SUSEConnect --product PackageHub/15.2/x86_64
libjpeg8-32bit            Desktop Applications Module (sle-module-desktop-applications/15.2/x86_64)  SUSEConnect --product sle-module-desktop-applications/15.2/x86_64
libjpeg62                 Basesystem Module (sle-module-basesystem/15.2/x86_64)                      SUSEConnect --product sle-module-basesystem/15.2/x86_64
libjpeg62-devel           Basesystem Module (sle-module-basesystem/15.2/x86_64)                      SUSEConnect --product sle-module-basesystem/15.2/x86_64
libjpeg8                  Basesystem Module (sle-module-basesystem/15.2/x86_64)                      SUSEConnect --product sle-module-basesystem/15.2/x86_64
libjpeg8-devel            Basesystem Module (sle-module-basesystem/15.2/x86_64)                      SUSEConnect --product sle-module-basesystem/15.2/x86_64
libjpegxr0                SUSE Package Hub (PackageHub/15.2/x86_64)                                  SUSEConnect --product PackageHub/15.2/x86_64

To activate the respective module or product, use SUSEConnect --product.
Use SUSEConnect --help for more details.

ngelinux001 /home/user%

 

2. Install the required package.

ngelinux001 /home/user% zypper install libjpeg-turbo
Root privileges are required to run this command.

ngelinux001 /home/user% sudo zypper install libjpeg-turbo
Loading repository data...
Reading installed packages...
'libjpeg-turbo' not found in package names. Trying capabilities.
No provider of 'libjpeg-turbo' found.
Resolving package dependencies...
Nothing to do.
ngelinux001 /home/user%

 

3. Download and install the package.
I have searched on internet and found the package download url, now i can proceed like below.

ngelinux001 /home/user% wget https://ftp.lysator.liu.se/pub/opensuse/ports/aarch64/distribution/leap/15.3/repo/oss/x86_64/libjpeg-turbo-1.5.3-5.18.1.x86_64.rpm
--2022-04-04 20:07:41--  https://ftp.lysator.liu.se/pub/opensuse/ports/aarch64/distribution/leap/15.3/repo/oss/x86_64/libjpeg-turbo-1.5.3-5.18.1.x86_64.rpm
Resolving ftp.lysator.liu.se (ftp.lysator.liu.se)... 130.236.254.253, 2001:6b0:17:f0a0::fd
Connecting to ftp.lysator.liu.se (ftp.lysator.liu.se)|130.236.254.253|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 129332 (126K) [application/x-redhat-package-manager]
Saving to: ‘libjpeg-turbo-1.5.3-5.18.1.x86_64.rpm’

libjpeg-turbo-1.5.3-5.18.1.x86_ 100%[=====================================================>] 126.30K   286KB/s    in 0.4s

2022-04-04 20:07:44 (286 KB/s) - ‘libjpeg-turbo-1.5.3-5.18.1.x86_64.rpm’ saved [129332/129332]


ngelinux001 /home/user% sudo zypper install ./libjpeg-turbo-1.5.3-5.18.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  libjpeg-turbo libturbojpeg0

The following package has no support information from its vendor:
  libjpeg-turbo

2 new packages to install.
Overall download size: 265.4 KiB. Already cached: 0 B. After the operation, additional 765.8 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libturbojpeg0-8.1.2-5.12.1.x86_64                                     (1/2), 139.1 KiB (450.3 KiB unpacked)
Retrieving: libturbojpeg0-8.1.2-5.12.1.x86_64.rpm .........................................................[done (13.9 KiB/s)]
Retrieving package libjpeg-turbo-1.5.3-5.18.1.x86_64                                     (2/2), 126.3 KiB (315.5 KiB unpacked)

Checking for file conflicts: ...........................................................................................[done]
(1/2) Installing: libturbojpeg0-8.1.2-5.12.1.x86_64 ....................................................................[done]
(2/2) Installing: libjpeg-turbo-1.5.3-5.18.1.x86_64 ....................................................................[done]
ngelinux001 /home/user%

Now we have the package installed on our SLES system.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments