Add CMA to Centos 8.2

Issues related to applications and software problems and general support
zvivered
Posts: 17
Joined: 2019/09/23 17:23:00

Add CMA to Centos 8.2

Post by zvivered » 2021/06/23 06:53:24

Hello,

In order to add CMA I had to change the kernel configuration.
So I followed:
https://wiki.centos.org/HowTos/Custom_Kernel

When I got to: rpmbuild -bb --target=`uname -m` kernel.spec
I got an error:
Failed to find dependencies:
dwarves is needed by kernel-4.18.0-193.el18.x86_64
libbpf-devel is needed by kernel-4.18.0-193.el18.x86_64

I tried to search for the 2 missing RPMS but then I got other dependency errors.

Is it possible to install the 2 missing RPMs with yum install ? How ?
I tried : yum install dwarves but failed.

Thank you,
Zvika

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Add CMA to Centos 8.2

Post by TrevorH » 2021/06/23 08:18:14

libbpf is in the powertools repo )disabled by default)
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

zvivered
Posts: 17
Joined: 2019/09/23 17:23:00

Re: Add CMA to Centos 8.2

Post by zvivered » 2021/06/23 08:39:55

Hello,

Thank you very much for your reply.

Where should I download powertools repo for 8.2 ?
Should I install it with : yum install ?
Unfortunatelly, I'm working in an offline PC (without Internet)

Best regards
Zvika

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Add CMA to Centos 8.2

Post by TrevorH » 2021/06/23 09:23:40

Powertools is a standard repo but it is disabled by default. You just need to edit the repo file and enable it (or use yum-config-manager).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Add CMA to Centos 8.2

Post by jlehtone » 2021/06/23 09:30:17

The 'powertools' is a CentOS repo just like the 'baseos', 'appstream', and 'extras'. (Oh, and the repo names were different in 8.2 ...)
8.2.2004/readme wrote:This directory (and version of CentOS) is deprecated. Please see this FAQ concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

If you know what you are doing, and absolutely want to remain at the 8.2.2004 level, go to http://vault.centos.org/ for packages.

Please keep in mind that 8.2.2004 no longer gets any updates, nor any security fix's.

zvivered
Posts: 17
Joined: 2019/09/23 17:23:00

Re: Add CMA to Centos 8.2

Post by zvivered » 2021/06/23 10:04:34

Hello,

I installed the PC from a DOK burned with the ISO downloaded from:
https://vault.centos.org/8.2.2004/isos/x86_64/
Size: 7.7G

The ISO contains AppStream, BaseOS but no "extra" folder.
Can you please help ?

Thank you very much,
Zvika

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Add CMA to Centos 8.2

Post by TrevorH » 2021/06/23 11:24:08

All CentOS 8 versions ship with the same repo configuration. The file you need to look at is in /etc/yum.repos.d and will be called something like CentOS-Linux-PowerTools.repo though the case of the name may vary (some bright spark had the great idea of lowercasing all repo names).

Also, you should not be running 8.2 at all - it's out of date and insecure and was replaced by first 8.3 and now 8.4. You can `yum update` from 8.2 to 8.4 in one go.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Add CMA to Centos 8.2

Post by jlehtone » 2021/06/23 12:00:42

Code: Select all

# dnf repolist all
repo id                 repo name
appstream               CentOS Linux 8 - AppStream
baseos                  CentOS Linux 8 - BaseOS
extras                  CentOS Linux 8 - Extras
fasttrack               CentOS Linux 8 - FastTrack
ha                      CentOS Linux 8 - HighAvailability
media-appstream         CentOS Linux 8 - Media - AppStream
media-baseos            CentOS Linux 8 - Media - BaseOS
plus                    CentOS Linux 8 - Plus
powertools              CentOS Linux 8 - PowerTools
If one has repos on DVD/USB, then one would disable the online repos (baseos,appstream,...)
and enable the local media versions: media-baseos and media-appstream.

Apparently there is no "media-powertools" repo definition, i.e. no packages on the media.

zvivered
Posts: 17
Joined: 2019/09/23 17:23:00

Re: Add CMA to Centos 8.2

Post by zvivered » 2021/06/23 16:37:01

Hello,

I found the following URL:
https://vault.centos.org/8.2.2004/extras/x86_64/os/
Is it wise to download all files into the target PC, modify local.repo and run "yum install" ?

Thank you,
Zvika

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Add CMA to Centos 8.2

Post by TrevorH » 2021/06/23 17:21:17

That's not going to help you since that url is for the extras repo.

If this is an installed system then you already have the powertools repo definition in /etc/yum.repos.d and you just need to edit the file and change enabled=0 to 1 and save it. You can also run dnf repolist all and you will see it listed there, disabled.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply