View on
Thierry Vignaud > urpmi-7.13 > urpm



Annotate this POD


New  2
Open  0
View/Report Bugs
Module Version: 7.13   Source   Latest Release: urpmi-8.106


urpm - Mageia perl tools to handle the urpmi database


urpm is used by urpmi executables to manipulate packages and media on a Mageia Linux distribution.

The urpm class


The constructor creates a new urpm object. It's a blessed hash that contains fields from URPM, and also the following fields:

source: { id => src_rpm_file|spec_file }

media: [ { start => int, end => int, name => string, url => string, virtual => bool, media_info_dir => string, with_synthesis => string, no-media-info => bool, iso => string, downloader => string, ignore => bool, update => bool, modified => bool, really_modified => bool, unknown_media_info => bool, } ],

All URPM methods are available on an urpm object.

db_open_or_die($urpm, $b_write_perm)

Open RPM database (RW or not) and die if it fails

register_rpms($urpm, @files)

Register local packages for being installed, keep track of source.

is_delta_installable($urpm, $pkg, $root)

checks whether the delta RPM represented by $pkg is installable wrt the RPM DB on $root. For this, it extracts the rpm version to which the delta applies from the delta rpm filename itself. So naming conventions do matter :)

extract_packages_to_install($urpm, $sources)

Extract package that should be installed instead of upgraded, installing instead of upgrading is useful - for inst.list (cf flag disable_obsolete)

Sources is a hash of id -> source rpm filename.

get_updates_description($urpm, @update_medias)

Get reason of update for packages to be updated. Use all update medias if none given.


The URPM package is used to manipulate at a lower level synthesis and rpm files.

See also submodules: urpm::args, urpm::bug_report, urpm::cdrom, urpm::cfg, urpm::download, urpm::get_pkgs, urpm::install, urpm::ldap, urpm::lock, urpm::main_loop, urpm::md5sum, urpm::media, urpm::mirrors, urpm::msg, urpm::orphans, urpm::parallel_ka_run, urpm::parallel, urpm::parallel_ssh, urpm::prompt, urpm::removable, urpm::select, urpm::signature, urpm::sys, urpm::util, urpm::xml_info_pkg, urpm::xml_info


Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA

Copyright (C) 2005-2010 Mandriva SA

Copyright (C) 2011-2012 Mageia SA

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

syntax highlighting: