Lines Matching +full:- +full:- +full:ignore +full:- +full:installed
26 - type: Package management program that handles the file
27 - system_support: If the package management program is installed on the
29 - source: If it is a source (True) our binary (False) package
30 - version: The package version (or name), that is used to check against the
31 package manager if the package is installed
32 - arch: The architecture for which a binary package was built
33 - installed: Whether the package is installed (True) on the system or not
44 # s_cmd - Command to determine if package is a source package
45 # a_cmd - Command to determine package architecture
46 # v_cmd - Command to determine package version
47 # i_cmd - Command to determiine if package is installed
48 s_cmd = 'rpm -qp --qf %{SOURCE} ' + rpm_package + ' 2>/dev/null'
49 a_cmd = 'rpm -qp --qf %{ARCH} ' + rpm_package + ' 2>/dev/null'
50 v_cmd = 'rpm -qp ' + rpm_package + ' 2>/dev/null'
51 i_cmd = 'rpm -q ' + utils.system_output(v_cmd) + ' 2>&1 >/dev/null'
62 # Checking if package is installed
65 package_info['installed'] = True
67 package_info['installed'] = False
71 package_info['installed'] = False
112 - type: Package management program that handles the file
113 - system_support: If the package management program is installed on the
115 - source: If it is a source (True) our binary (False) package
116 - version: The package version (or name), that is used to check against the
117 package manager if the package is installed
118 - arch: The architecture for which a binary package was built
119 - installed: Whether the package is installed (True) on the system or not
133 # a_cmd - Command to determine package architecture
134 # v_cmd - Command to determine package version
135 # i_cmd - Command to determiine if package is installed
136 a_cmd = 'dpkg -f ' + dpkg_package + ' Architecture 2>/dev/null'
137 v_cmd = 'dpkg -f ' + dpkg_package + ' Package 2>/dev/null'
138 i_cmd = 'dpkg -s ' + utils.system_output(v_cmd) + ' 2>/dev/null'
143 # Checking if package is installed
145 not_inst_pattern = re.compile('not-installed', re.IGNORECASE)
148 package_info['installed'] = False
150 package_info['installed'] = True
154 package_info['installed'] = False
164 """Returns a list with the names of all currently installed packages."""
169 installed_packages += utils.system_output('rpm -qa').splitlines()
172 raw_list = utils.system_output('dpkg -l').splitlines()[5:]
175 if parts[0] == "ii": # only grab "installed" packages
176 installed_packages.append("%s-%s" % (parts[1], parts[2]))
184 - type: Package management program that handles the file
185 - system_support: If the package management program is installed on the
187 - source: If it is a source (True) our binary (False) package
188 - version: The package version (or name), that is used to check against the
189 package manager if the package is installed
190 - arch: The architecture for which a binary package was built
191 - installed: Whether the package is installed (True) on the system or not
195 - 'dpkg' - dpkg (debian, ubuntu) package files
196 - 'rpm' - rpm (red hat, suse) package files
224 Tries to install a package file. If the package is already installed,
226 true, it will ignore package dependencies.
232 installed = my_package_info['installed']
242 opt_args = opt_args + '--nodeps'
243 install_command = 'rpm %s -U %s' % (opt_args, package)
246 opt_args = opt_args + '--force-depends'
247 install_command = 'dpkg %s -i %s' % (opt_args, package)
249 # RPM source packages can be installed along with the binary versions
251 if installed and not source:
252 return 'Package %s is already installed' % package
258 return 'Package %s was installed successfuly' % package
263 Convert packages with the 'alien' utility. If alien is not installed, it
270 e_msg = 'Cannot convert to %s, alien not installed' % destination_format
276 deb_pattern = re.compile('[A-Za-z0-9_.-]*[.][d][e][b]')
277 conv_output = utils.system_output('alien --to-deb %s 2>/dev/null'
281 rpm_pattern = re.compile('[A-Za-z0-9_.-]*[.][r][p][m]')
282 conv_output = utils.system_output('alien --to-rpm %s 2>/dev/null'
297 - rpm: True if system supports rpm packages, False otherwise
298 - dpkg: True if system supports dpkg packages, False otherwise
299 - conversion: True if the system can convert packages (alien installed),