Linux yavrix.internet-webhosting.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
LiteSpeed
Server IP : 103.8.25.136 & Your IP : 216.73.216.29
Domains :
Cant Read [ /etc/named.conf ]
User : celfico1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
yum-plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
fastestmirror.py
17.98
KB
-rw-r--r--
2020-05-12 16:27
fastestmirror.pyc
16.71
KB
-rw-r--r--
2020-05-12 16:27
fastestmirror.pyo
16.71
KB
-rw-r--r--
2020-05-12 16:27
langpacks.py
26.11
KB
-rw-r--r--
2016-11-05 17:36
langpacks.pyc
24.66
KB
-rw-r--r--
2016-11-05 17:36
langpacks.pyo
24.66
KB
-rw-r--r--
2016-11-05 17:36
protectbase.py
2.4
KB
-rw-r--r--
2020-05-15 12:15
protectbase.pyc
2.07
KB
-rw-r--r--
2020-05-15 12:15
protectbase.pyo
2.07
KB
-rw-r--r--
2020-05-15 12:15
universal-hooks.py
8.45
KB
-rwxr-xr-x
2019-09-26 10:45
universal-hooks.pyc
7.15
KB
-rw-r--r--
2020-06-13 04:26
Save
Rename
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # by Menno Smits <menno@freshfoo.com> ''' This plugin allows certain repositories to be protected. Packages in the protected repositories can't be overridden by packages in non-protected repositories even if the non-protected repo has a later version. This is mainly useful for preventing 3rd party repositories from interfering with packages from core, updates, extras and livna. Enable the plugin and add 'protect=yes' to the config of all repos you want to protect. ''' from yum.plugins import TYPE_CORE from yum import config requires_api_version = '2.4' plugin_type = (TYPE_CORE,) def config_hook(conduit): '''Add options to Yum's configuration ''' config.YumConf.protect = config.BoolOption(False) config.RepoConf.protect = config.Inherit(config.YumConf.protect) def exclude_hook(conduit): '''Exclude packages from non-protected repositories that may upgrade packages from protected repositories. ''' cnt = 0 allrepos = conduit.getRepos().listEnabled() for repo1 in allrepos: if repo1.enabled and repo1.protect: repo1pkgs = _pkglisttodict(conduit.getPackages(repo1)) for repo2 in allrepos: if not repo2.enabled or repo2.protect: continue for po in conduit.getPackages(repo2): if po.name in repo1pkgs: conduit.delPackage(po) cnt += 1 if cnt: if hasattr(conduit, 'registerPackageName'): conduit.registerPackageName("yum-plugin-protectbase") conduit.info(2, '%d packages excluded due to repository protections' % cnt) def _pkglisttodict(pl): out = {} for p in pl: out[p.name] = 1 return out