ManaTools::Shared::urpmi_backend::DB

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

NAME

    ManaTools::Shared::urpmi_backend::DB - urpm DB object

 

SYNOPSIS

    use ManaTools::Shared::urpmi_backend::DB;

    my $db_man = ManaTools::Shared::urpmi_backend::DB->new();
    my $urpm = $db_man->fast_open_urpmi_db();

 

DESCRIPTION

    This module is a backend to urpm open db

 

SUPPORT

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

    perldoc 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::open_db:
     Copyright (c) 2002 Guillaume Cottenceau
     Copyright (C) 2008 Aurelien Lefebvre <alkh@mandriva.org>
     Copyright (c) 2002-2014 Thierry Vignaud <thierry.vignaud@gmail.com>
     Copyright (c) 2003, 2004, 2005 MandrakeSoft SA
     Copyright (c) 2005-2007 Mandriva SA

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

 

new - optional parameters

urpmi_root

    optional parameter urpmi_root directory,
    default value is undef

 

new - optional parameters

rpm_root

    optional parameter rpm_root directory,
    default value is undef

 

new - optional parameters

debug

    optional parameter - urpm debug option,
    default value is undef

 

new - optional parameters

wait_lock

    optional parameter - urpm wait_lock option,
    default value is undef

 

new - optional parameters

verify_rpm

    optional parameter - urpm verify_rpm option,
    default value is undef

 

new - optional parameters

auto

    optional parameter - urpm auto option,
    default value is undef

 

new - optional parameters

set_verbosity

    optional parameter - urpm set_verbosity option,
    default value is undef

 

new - optional parameters

justdb

    optional parameter - urpm justdb option,
    default value is undef

 

open_rpm_db

OUTPUT

    URPM::DB: an URPM opened dataase

DESCRIPTION

    this method return an URPM::DB object

 

fast_open_urpmi_db

OUTPUT

urpm: an urpm object

DESCRIPTION

    this method return an urpm object

 

is_it_a_devel_distro

DESCRIPTION

    This method returns if current distro is not stable

 

get_backport_media

INPUT

    $urpm: an urpm object

DESCRIPTION

    This method returns a list of backport media

 

get_inactive_backport_media

INPUT

    $urpm: an urpm object

DESCRIPTION

    This method returns a list of inactive backport media

 

get_update_media

INPUT

    $urpm: an urpm object

DESCRIPTION

    This method returns a list of update media

 

get_active_media

INPUT

    $urpm: an urpm object

DESCRIPTION

    This method returns a list of active media

 

open_urpmi_db

INPUT

    %urpmi_options: urpmi options used to open and lock urpmi
                    db.

DESCRIPTION

    This method returns an urpm option with a lock on db

 

lock

INPUT

    $urpm: urpm object

OUTPUT

    0 if already locked, 1 otherwhise

DESCRIPTION

    This method locks the db passed into urpm object

 

unlock

INPUT

    $urpm: urpm object

DESCRIPTION

    This method unlocks the db passed into urpm object


 

Index

NAME
SYNOPSIS
DESCRIPTION
SUPPORT
AUTHOR
COPYRIGHT and LICENSE
METHODS
new - optional parameters
new - optional parameters
new - optional parameters
new - optional parameters
new - optional parameters
new - optional parameters
new - optional parameters
new - optional parameters
open_rpm_db
fast_open_urpmi_db
is_it_a_devel_distro
get_backport_media
get_inactive_backport_media
get_update_media
get_active_media
open_urpmi_db
lock
unlock