yum.history

_YumHistPackageYumDB

class yum.history._YumHistPackageYumDB(pkg)

Class to pretend to be yumdb_info for history packages.

get(attr, default=None)

retrieve an add’l data obj

YumHistoryPackage

class yum.history.YumHistoryPackage(name, arch, epoch, version, release, checksum=None, history=None)

Bases: yum.packages.PackageObject

YumHistoryPackageState

class yum.history.YumHistoryPackageState(name, arch, epoch, version, release, state, checksum=None, history=None)

Bases: yum.history.YumHistoryPackage

YumHistoryRpmdbProblem

class yum.history.YumHistoryRpmdbProblem(history, rpid, problem, text)

Class representing an rpmdb problem that existed at the time of the transaction.

YumHistoryTransaction

class yum.history.YumHistoryTransaction(history, row)

Holder for a history transaction.

YumMergedHistoryTransaction

class yum.history.YumMergedHistoryTransaction(obj)

Bases: yum.history.YumHistoryTransaction

YumHistory

class yum.history.YumHistory(root='/', db_path='/var/lib/yum/history', releasever=None)

API for accessing the history sqlite data.

last(complete_transactions_only=True)

This is the last full transaction. So any incomplete transactions do not count, by default.

log_scriptlet_output(data, msg)

Note that data can be either a real pkg. ... or not.

old(tids=[], limit=None, complete_transactions_only=False)

Return a list of the last transactions, note that this includes partial transactions (ones without an end transaction).

search(patterns, ignore_case=True)

Search for history transactions which contain specified packages al. la. “yum list”. Returns transaction ids.

sync_alldb(ipkg)

Sync. all the data for rpmdb/yumdb for this installed pkg.

write_addon_data(dataname, data)

append data to an arbitrary-named file in the history addon_path/transaction id location, returns True if write succeeded, False if not

Table Of Contents

Previous topic

yum.failover

Next topic

yum.i18n

This Page