Solved: xmobar package dependencies: Steps to Install xmobar on Linux: RHEL 7.

In this article, we will see how to install xmobar on RHEL 7 Linux.

1. Configure xmobar repo

[root@ngelinux001 yum.repos.d]# pwd
/etc/yum.repos.d

[root@ngelinux001 yum.repos.d]# cat xmobar.repo
[xmobar-repo]
name=Xmobar repo
baseurl=http://mirror.ghettoforge.org/distributions/gf/el/7/gf/x86_64/
gpgcheck=0
enabled=1
[root@ngelinux001 yum.repos.d]#

 

2. Now try to install xmobar with “–skip-broken” option as it will run with another version of binaries.

[root@ngelinux001 ~]# yum -y install xmobar --skip-broken
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
              : versionlock

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading support for Red Hat kernel ABI
Resolving Dependencies
--> Running transaction check
---> Package xmobar.x86_64 0:0.22.1-2.gf.el7 will be installed
--> Processing Dependency: ghc(transformers-0.3.0.0-387c76a892254b0b8fe4d66f4780ad17) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(regex-posix-0.95.2-a7e936989950443fee47233b57a6ae5f) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(regex-compat-0.95.1-121c7124a3abcea107e3885c2f37e0cf) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(regex-base-0.93.2-f9403610b59f8cc474edd63a82806d18) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(parsec-3.1.3-441f1388bc13de47c52a9ba8a23194f4) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(network-2.4.1.2-ceff6721a9d15c92aeb91b7ff1b8e52b) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(mtl-2.1.2-82086cac9073862cbe01e44b81ec8b9b) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(hinotify-0.3.5-2a3be695fe79ba86adf4d30f00dee819) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(X11-1.6.1.1-4b47fead1340478e7cb599d5871db290) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(HTTP-4000.2.8-6786975a51443bdb5cd8dd2ea9496185) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: libiw.so.29()(64bit) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: libHSregex-posix-0.95.2-ghc7.6.3.so()(64bit) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: libHSregex-compat-0.95.1-ghc7.6.3.so()(64bit) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: libHSregex-base-0.93.2-ghc7.6.3.so()(64bit) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Running transaction check
---> Package ghc-regex-base.x86_64 0:0.93.2-29.el7 will be installed
---> Package ghc-regex-compat.x86_64 0:0.95.1-35.el7 will be installed
---> Package ghc-regex-posix.x86_64 0:0.95.2-30.el7 will be installed
---> Package wireless-tools.x86_64 1:29-13.el7 will be installed
---> Package xmobar.x86_64 0:0.22.1-2.gf.el7 will be installed
--> Processing Dependency: ghc(transformers-0.3.0.0-387c76a892254b0b8fe4d66f4780ad17) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(parsec-3.1.3-441f1388bc13de47c52a9ba8a23194f4) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(network-2.4.1.2-ceff6721a9d15c92aeb91b7ff1b8e52b) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(mtl-2.1.2-82086cac9073862cbe01e44b81ec8b9b) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(hinotify-0.3.5-2a3be695fe79ba86adf4d30f00dee819) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(X11-1.6.1.1-4b47fead1340478e7cb599d5871db290) for package: xmobar-0.22.1-2.gf.el7.x86_64
--> Processing Dependency: ghc(HTTP-4000.2.8-6786975a51443bdb5cd8dd2ea9496185) for package: xmobar-0.22.1-2.gf.el7.x86_64

Packages skipped because of dependency problems:
    ghc-regex-base-0.93.2-29.el7.x86_64 from epel
    ghc-regex-compat-0.95.1-35.el7.x86_64 from epel
    ghc-regex-posix-0.95.2-30.el7.x86_64 from epel
    1:wireless-tools-29-13.el7.x86_64 from epel
    xmobar-0.22.1-2.gf.el7.x86_64 from gf
[root@ngelinux001 ~]# 

 

3. Lets install all the dependencies first.

[root@ngelinux001 ~]# yum install ghc-regex-base
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
              : versionlock

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading support for Red Hat kernel ABI
Resolving Dependencies
--> Running transaction check
---> Package ghc-regex-base.x86_64 0:0.93.2-29.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
 Package                            Arch                       Version                           Repository                Size
================================================================================================================================
Installing:
 ghc-regex-base                     x86_64                     0.93.2-29.el7                     epel                      28 k

Transaction Summary
================================================================================================================================
Install  1 Package

Total download size: 28 k
Installed size: 136 k
Is this ok [y/d/N]: y
Downloading packages:
ghc-regex-base-0.93.2-29.el7.x86_64.rpm                                                                  |  28 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.

  Installing : ghc-regex-base-0.93.2-29.el7.x86_64                                                                          1/1
  Verifying  : ghc-regex-base-0.93.2-29.el7.x86_64                                                                          1/1

Installed:
  ghc-regex-base.x86_64 0:0.93.2-29.el7

Complete!
[root@ngelinux001 ~]#


[root@ngelinux001 ~]# yum install ghc-regex-compat ghc-regex-posix
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
              : versionlock

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading support for Red Hat kernel ABI
Resolving Dependencies
--> Running transaction check
---> Package ghc-regex-compat.x86_64 0:0.95.1-35.el7 will be installed
---> Package ghc-regex-posix.x86_64 0:0.95.2-30.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
 Package                             Arch                      Version                            Repository               Size
================================================================================================================================
Installing:
 ghc-regex-compat                    x86_64                    0.95.1-35.el7                      epel                     15 k
 ghc-regex-posix                     x86_64                    0.95.2-30.el7                      epel                     47 k

Transaction Summary
================================================================================================================================
Install  2 Packages

Total download size: 62 k
Installed size: 291 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): ghc-regex-compat-0.95.1-35.el7.x86_64.rpm                                                         |  15 kB  00:00:00
(2/2): ghc-regex-posix-0.95.2-30.el7.x86_64.rpm                                                          |  47 kB  00:00:00
--------------------------------------------------------------------------------------------------------------------------------
Total                                                                                           210 kB/s |  62 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ghc-regex-posix-0.95.2-30.el7.x86_64                                                                         1/2
  Installing : ghc-regex-compat-0.95.1-35.el7.x86_64                                                                        2/2
  Verifying  : ghc-regex-posix-0.95.2-30.el7.x86_64                                                                         1/2
  Verifying  : ghc-regex-compat-0.95.1-35.el7.x86_64                                                                        2/2

Installed:
  ghc-regex-compat.x86_64 0:0.95.1-35.el7                         ghc-regex-posix.x86_64 0:0.95.2-30.el7

Complete!
[root@ngelinux001 ~]# 



[root@ngelinux001 ~]# yum install wireless-tools
Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify,
              : versionlock

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading support for Red Hat kernel ABI
Resolving Dependencies
--> Running transaction check
---> Package wireless-tools.x86_64 1:29-13.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
 Package                            Arch                       Version                           Repository                Size
================================================================================================================================
Installing:
 wireless-tools                     x86_64                     1:29-13.el7                       epel                     103 k

Transaction Summary
================================================================================================================================
Install  1 Package

Total download size: 103 k
Installed size: 237 k
Is this ok [y/d/N]: y
Downloading packages:
wireless-tools-29-13.el7.x86_64.rpm                                                                      | 103 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:wireless-tools-29-13.el7.x86_64                                                                            1/1
  Verifying  : 1:wireless-tools-29-13.el7.x86_64                                                                            1/1

Installed:
  wireless-tools.x86_64 1:29-13.el7

Complete!

 

4. Now download the xmobar rpm using yumdownloader.

[root@ngelinux001 ~]# yumdownloader xmobar
Loaded plugins: kabi, langpacks, product-id, subscription-manager, versionlock

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading support for Red Hat kernel ABI
warning: /root/xmobar-0.22.1-2.gf.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID da8b7718: NOKEY/s |    0 B  --:--:-- ETA
Public key for xmobar-0.22.1-2.gf.el7.x86_64.rpm is not installed
xmobar-0.22.1-2.gf.el7.x86_64.rpm                                                                        | 298 kB  00:00:00

[root@ngelinux001 ~]# ls -ltr
total 320
-rw-r--r--  1 root root 304724 Mar 23  2015 xmobar-0.22.1-2.gf.el7.x86_64.rpm
-rw-------. 1 root root   4159 Jan 27  2022 original-ks.cfg
-rw-------. 1 root root   5082 Jan 27  2022 anaconda-ks.cfg

 

5. Now install the RPM without dependency check.

### First check its dependencies which are failing
[root@ngelinux001 ~]# rpm -ivh xmobar-0.22.1-2.gf.el7.x86_64.rpm
warning: xmobar-0.22.1-2.gf.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID da8b7718: NOKEY
error: Failed dependencies:
        ghc(hinotify-0.3.5-2a3be695fe79ba86adf4d30f00dee819) is needed by xmobar-0.22.1-2.gf.el7.x86_64
        ghc(X11-1.6.1.1-4b47fead1340478e7cb599d5871db290) is needed by xmobar-0.22.1-2.gf.el7.x86_64
        ghc(HTTP-4000.2.8-6786975a51443bdb5cd8dd2ea9496185) is needed by xmobar-0.22.1-2.gf.el7.x86_64
        ghc(network-2.4.1.2-ceff6721a9d15c92aeb91b7ff1b8e52b) is needed by xmobar-0.22.1-2.gf.el7.x86_64
        ghc(parsec-3.1.3-441f1388bc13de47c52a9ba8a23194f4) is needed by xmobar-0.22.1-2.gf.el7.x86_64
        ghc(mtl-2.1.2-82086cac9073862cbe01e44b81ec8b9b) is needed by xmobar-0.22.1-2.gf.el7.x86_64
        ghc(transformers-0.3.0.0-387c76a892254b0b8fe4d66f4780ad17) is needed by xmobar-0.22.1-2.gf.el7.x86_64
[root@ngelinux001 ~]# 

### Verify all dependencies are installed, maybe another version.
### Like an example below, we checked for one dependency.
[root@ngelinux001 ~]# rpm -qa | grep -i HTTP-4000
ghc-HTTP-4000.2.8-33.el7.x86_64

### Now install rpm with nodeps option
[root@ngelinux001 ~]# rpm -ivh xmobar-0.22.1-2.gf.el7.x86_64.rpm --nodeps
warning: xmobar-0.22.1-2.gf.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID da8b7718: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:xmobar-0.22.1-2.gf.el7           ################################# [100%]
[root@ngelinux001 ~]#

 

6. Now export display and run xmobar.

[root@ngelinux001 ~]# export DISPLAY=10.254.58.169:0.0
[root@ngelinux001 ~]# xmobar
^C
[root@ngelinux001 ~]# 
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments