rubocop:disable Lint/UnusedMethodArgument
clean the package manager cache
# File lib/foreman_maintain/package_manager/base.rb, line 55 def clean_cache raise NotImplementedError end
list all files not owned by installed package
# File lib/foreman_maintain/package_manager/base.rb, line 60 def files_not_owned_by_package(directory) raise NotImplementedError end
find installed package and return full nvra or nil
# File lib/foreman_maintain/package_manager/base.rb, line 20 def find_installed_package(name) raise NotImplementedError end
install package
# File lib/foreman_maintain/package_manager/base.rb, line 25 def install(packages, assumeyes: false) raise NotImplementedError end
make sure the version locking tools are configured
# File lib/foreman_maintain/package_manager/base.rb, line 10 def install_version_locking(assumeyes: false) raise NotImplementedError end
are the packages installed on the system?
# File lib/foreman_maintain/package_manager/base.rb, line 15 def installed?(packages) raise NotImplementedError end
prevent selected packages from update or install
# File lib/foreman_maintain/package_manager/base.rb, line 40 def lock_versions raise NotImplementedError end
remove package
# File lib/foreman_maintain/package_manager/base.rb, line 30 def remove(packages, assumeyes: false) raise NotImplementedError end
allow all packages we previously locked to update
# File lib/foreman_maintain/package_manager/base.rb, line 45 def unlock_versions raise NotImplementedError end
update package
# File lib/foreman_maintain/package_manager/base.rb, line 35 def update(packages = [], assumeyes: false) raise NotImplementedError end
check tools are installed and enabled
# File lib/foreman_maintain/package_manager/base.rb, line 5 def version_locking_enabled? raise NotImplementedError end
check if packages are locked
# File lib/foreman_maintain/package_manager/base.rb, line 50 def versions_locked? raise NotImplementedError end
# File lib/foreman_maintain/package_manager/base.rb, line 66 def sys ForemanMaintain::Utils::SystemHelpers end