Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Latest commit

 

History

History
60 lines (38 loc) · 3.46 KB

README.md

File metadata and controls

60 lines (38 loc) · 3.46 KB

yumonclearlinux

Script to enable basic yum functionality on Intel Clear Linux.

Proof of concept. This will probably break your swupd. Run in a container or VM.

Tested on clear-19810.

Background

In lieu of traditional single-package package management, Intel Clear Linux groups it's packages in task-related bundles. These are generally very useful. For example, installing the shells bundle installs a couple of useful shells like bash, zsh, and fish.

The Problem

But if you want to install third-party apps, Intel recommends flatpak. Flatpak is helpful and a decent comprimise for apps like Spotify and Corebird which have complicated dependency requirements.

Overall I find the flatpak apps to be slow compared to normal Linux distro binaries and particularly slow compared to the optimized Intel Clear Linux binaries. LibreOffice in flatpak is just not responsive enough. Also not all third-party apps are available in flatpak, such as Enpass or Virtual Studio Code.

Solution

Intel Clear Linux includes yum in the os-clr-on-clr bundle that can be set up with repos, including a handy Intel Clear Linux yum-compatible repo. This allows basic yum functionality (see Known Issues) and greater package granularity than the official Intel Clear Linux bundle approach.

Why Should I Care?

This allows you to:

  • Install specific packages in Intel Clear Linux, from Intel Clear Linux repo's containing optimized binaries, without having to install an entire bundle.
  • Install third-party yum repos and rpms and fulfill their dependencies with Intel Clear Linux optimized binaries, e.g. LibreOffice 6.

Installation

git clone https://github.com/sirredbeard/yumonclearlinux.git
cd yumonclearlinux
nano yum.conf	#make edits as necessary
chmod u+x setup-yum.sh
./setup-yum.sh	#run script

Known Working

  • Visual Studio Code (via Microsoft's yum repo)
  • Enpass (download executable from website, install dependencies with yum install libXScrnSaver lsof)
  • EPEL 7 repo

Known Issues

  • This will probably break your swupd.
  • yum-config-manager doesn't work, fails with "ImportError: No module named iniparse" despite installation of iniparse, python-iniparse, and python3-iniparse. Workaround: Edit /etc/yum.conf directly.
  • Adding any of the Fedora project's yum repos, 25-27, tries to install a bunch of packages with dependencies issues, wreaks havoc on the machine.
  • Uninstalling python3 breaks yum, requiring a reinstall of Clear Linux. You have been warned.

To Do

  • Test additional third-party repositories.
  • Test if possible to build from third-party source rpms with optimized settings and fulfill their dependencies with optimized Intel Clear Linux source.
  • Write a less-invasive RPM-based package manager for Clear Linux, more like Homebrew

Caution

Installing packages using yum instead of swupd is not officially supported on Intel Clear Linux and can and will break your system, swupd, and cause data loss. It should only be used for very specific use-cases after thorough testing in a non-production machine. In general it's going to be safer to install an extra bundle than to resort to this.