Forums

Resolved
1 votes
Get an error with the command:
yum-config-manager --enable clearos-developer,clearos-centos,clearos-centos-updates,clearos-epel

yum-config-manager: Command not found.

I first did:
sudo swp bundle-add koji

but andy command with "yum" I get the error
Error accessing file for config file:///etc/yum.conf


There is no yum.conf file
Wednesday, August 07 2019, 08:22 PM
Share this post:

Accepted Answer

Friday, August 09 2019, 04:21 PM - #Permalink
Resolved
0 votes
With all the problems you've been having, are you sure you are on the right forums? ClearOS is different from the Clear Linux Project.
The reply is currently minimized Show
Responses (8)
  • Accepted Answer

    Wednesday, August 07 2019, 08:50 PM - #Permalink
    Resolved
    0 votes
    yum install yum-utils
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, August 07 2019, 08:57 PM - #Permalink
    Resolved
    0 votes
    Every "yum" command gives the error:
    Error: error accessing file for config file:///etc/yum.conf

    There is no file ///etc/yum.conf
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 08 2019, 08:16 AM - #Permalink
    Resolved
    0 votes
    I have no idea how that could have disappeared. You could try restoring a config backup from the last 10 days from Webconfig > System > Backup > Configuration Backup and Restore
    or you can extract the file from the backups in /var/clearos/configuration_backup.

    If that does not help, mine is:
    [main]
    http_caching=packages
    cachedir=/var/cache/yum/$basearch/$releasever
    keepcache=0
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    installonly_limit=5

    # This is the default, if you make this bigger yum won't see if the metadata
    # is newer on the remote and so you'll "gain" the bandwidth of not having to
    # download the new metadata and "pay" for it by yum not having correct
    # information.
    # It is esp. important, to have correct metadata, for distributions like
    # Fedora which don't keep old packages around. If you don't like this checking
    # interupting your command line usage, it's much better to have something
    # manually check the metadata once an hour (yum-updatesd will do this).
    # metadata_expire=90m

    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 09 2019, 12:09 AM - #Permalink
    Resolved
    0 votes
    I do not have access to directory /etc to create the file yum.conf
    I just installed clearos
    I do not have the directory /var/clearos/configuration_backup either

    do I create a file yum.conf and put it in /etc ? or do I create a file yum.repos.d ?

    how do I create a file in /etc ?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 09 2019, 12:17 AM - #Permalink
    Resolved
    0 votes
    creat4d the yum.conf in /etc directory now I get the error: rpmdb open failed trying to install "gcab"

    uefi@clr-live~/src/MaxWs/edk2 $ yum install gcab --enablerepo=clearos-centos
    error: cannot open Packages database in /var/lib/rpm
    CRITICAL:yum.main:

    Error: rpmdb open failed
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 09 2019, 02:45 PM - #Permalink
    Resolved
    0 votes
    Different fixes to try here.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 09 2019, 03:49 PM - #Permalink
    Resolved
    0 votes
    I was able to use the following to install uuid and gcab

    # install uuid
    sudo swupd bundle-add devpkg-util-linux

    # install gcab
    sudo swupd bundle-add devpkg-gcab

    The following is helpful: https://clearlinux.org/software then use the search to find what you are looking for
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 09 2019, 05:14 PM - #Permalink
    Resolved
    0 votes
    Yes I am using Clear Linux Project not ClearOS, sorry for the thrashing back and forth
    The reply is currently minimized Show
Your Reply