rubocop:disable Lint/UnusedMethodArgument
clean the package manager cache
# File lib/foreman_maintain/package_manager/base.rb, line 50 def clean_cache raise NotImplementedError end
list all files not owned by installed package
# File lib/foreman_maintain/package_manager/base.rb, line 55 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 15 def find_installed_package(name) raise NotImplementedError end
install package
# File lib/foreman_maintain/package_manager/base.rb, line 20 def install(packages, assumeyes: false) raise NotImplementedError end
are the packages installed on the system?
# File lib/foreman_maintain/package_manager/base.rb, line 10 def installed?(packages) raise NotImplementedError end
prevent selected packages from update or install
# File lib/foreman_maintain/package_manager/base.rb, line 35 def lock_versions raise NotImplementedError end
remove package
# File lib/foreman_maintain/package_manager/base.rb, line 25 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 40 def unlock_versions raise NotImplementedError end
update package
# File lib/foreman_maintain/package_manager/base.rb, line 30 def update(packages = [], assumeyes: false) raise NotImplementedError end
confirms that Package Manager supports the locking mechanism
# File lib/foreman_maintain/package_manager/base.rb, line 5 def version_locking_supported? raise NotImplementedError end
check if packages are locked
# File lib/foreman_maintain/package_manager/base.rb, line 45 def versions_locked? raise NotImplementedError end
# File lib/foreman_maintain/package_manager/base.rb, line 61 def sys ForemanMaintain::Utils::SystemHelpers end