ManaTools::Shared::urpmi_backend::tools

Section: User Contributed Perl Documentation (3)
Updated: 2017-07-06
Page Index
 

NAME

    ManaTools::Shared::urpmi_backend::tools - urpmi backend tools object

 

SYNOPSIS

    use ManaTools::Shared::urpmi_backend::tools;

    my $urpm_tools = ManaTools::Shared::urpmi_backend::tools->new();

 

DESCRIPTION

    This module is a backend to some urpmi funcitionalities

 

SUPPORT

    You can find documentation for this module with the perldoc command:

    perldoc ManaTools::Shared::urpmi_backend::tools

 

SEE also

    ManaTools::Shared::urpmi_backend::DB

 

AUTHOR

    Angelo Naselli <anaselli@linux.it>

 

COPYRIGHT and LICENSE

Copyright (c) 2015-2016 Angelo Naselli <anaselli@linux.it>
    from Rpmdrake:
     Copyright (c) 2002 Guillaume Cottenceau
     Copyright (c) 2003-2005 MandrakeSoft SA
     Copyright (c) 2005-2007 Mandriva SA
     Copyright (c) 2008 Aurelien Lefebvre <alkh@mandriva.org>
     Copyright (c) 2002-2014 Thierry Vignaud <thierry.vignaud@gmail.com>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.

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 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.  

METHODS

 

object attribute

urpmi_db_backend

    a ManaTools::Shared::urpmi_backend::DB object

 

get_update_media

INPUT

    $urpm: an urpm object

DESCRIPTION

    This method returns a list of update media
    (here for convenience, implemented in
    ManaTools::Shared::urpmi_backend::DB)

 

ensure_utf8

INPUT

    text: a string that is converted or left to utf8

DESCRIPTION

    This method ensure the given string is utf8

 

rpm_description

INPUT

# description: package description field

DESCRIPTION

    Retrieve the rpm desctiption

 

urpm_name

INPUT

    $pkg: package

DESCRIPTION

    This method returns the urpm format name e.g.
    name-version-release.arch

 

is_package_installed

INPUT

    $package: package to find (URPM::Package) or package name

DESCRIPTION

    This method returns if a package is installed

 

find_installed_fullname

INPUT

    $package: package to find (URPM::Package) or package name

DESCRIPTION

    This method returns the full name of the package if installed

 

is_mageia

DESCRIPTION

    This method returns if the system is mageia linux

 

vendor

DESCRIPTION

    This method returns if the vendor is mageia or mandriva

 

get_package_id

INPUT

    $package: package (URPM::Package)

DESCRIPTION

    This method returns the package id meant as
    (name;version-release;arch;vendor)

 

pkg2medium

INPUT

    $p:     package (URPM::Package)
    $urpm:  urpm object

DESCRIPTION

    Returns the medium that contains the URPM::Package $pkg

 

fullname_to_package_id

INPUT

    $pkg_string: package fullname

DESCRIPTION

    Returns package id meant as "name;varsion-release;arch;vendor"

 

get_package_by_package_id

INPUT

    $urpm:  urpm object
    $package_id: package id (see fullname_to_package_id)

DESCRIPTION

    Returns URPM::Package package

 

get_installed_fullname_pkid

    $pkg:     package (URPM::Package) or package name (string)

DESCRIPTION

    Returns package id of the given package

 

get_package_upgrade

    $urpm:  urpm object
    $pkg:   package (URPM::Package) or package name (string)

DESCRIPTION

    Returns package to upgrade


 

Index

NAME
SYNOPSIS
DESCRIPTION
SUPPORT
SEE also
AUTHOR
COPYRIGHT and LICENSE
METHODS
object attribute
get_update_media
ensure_utf8
rpm_description
urpm_name
is_package_installed
find_installed_fullname
is_mageia
vendor
get_package_id
pkg2medium
fullname_to_package_id
get_package_by_package_id
get_installed_fullname_pkid
get_package_upgrade