Python APT Documentation contents¶
Contents:
- What’s new in python-apt
- What’s New In python-apt 0.7.100
- What’s New In python-apt 0.8
- What’s New In python-apt 0.9.4
- What’s New In python-apt 1.0
- What’s New In python-apt 1.1
- What’s New In python-apt 1.4
- What’s New In python-apt 1.6
- What’s New In python-apt 1.7
- What’s New In python-apt 1.8
- What’s New In python-apt 2.0
- What’s New In python-apt 2.1
- Python APT Library
apt_pkg
— The low-level bindings for apt-pkg- Module Initialization
- Exceptions
- Working with the cache
Cache
- Managing the cache with
DepCache
DepCache
DepCache.commit()
DepCache.fix_broken()
DepCache.get_candidate_ver()
DepCache.init()
DepCache.read_pinfile()
DepCache.set_candidate_ver()
DepCache.upgrade()
DepCache.mark_auto()
DepCache.mark_keep()
DepCache.mark_delete()
DepCache.mark_install()
DepCache.set_reinstall()
DepCache.is_auto_installed()
DepCache.is_garbage()
DepCache.is_inst_broken()
DepCache.is_now_broken()
DepCache.is_upgradable()
DepCache.marked_delete()
DepCache.marked_downgrade()
DepCache.marked_install()
DepCache.marked_keep()
DepCache.marked_reinstall()
DepCache.marked_upgrade()
DepCache.phasing_applied()
DepCache.keep_count
DepCache.inst_count
DepCache.del_count
DepCache.broken_count
DepCache.usr_size
DepCache.deb_size
DepCache.policy
- Installing with
PackageManager
- Installation ordering with
OrderList
OrderList
OrderList.append()
OrderList.score()
OrderList.FLAG_ADDED
OrderList.FLAG_ADD_PENDING
OrderList.FLAG_IMMEDIATE
OrderList.FLAG_LOOP
OrderList.FLAG_UNPACKED
OrderList.FLAG_CONFIGURED
OrderList.FLAG_REMOVED
OrderList.FLAG_STATES_MASK
OrderList.FLAG_IN_LIST
OrderList.FLAG_AFTER
OrderList.flag()
OrderList.is_flag()
OrderList.wipe_flags()
OrderList.is_missing()
OrderList.is_now()
OrderList.order_critical()
OrderList.order_unpack()
OrderList.order_configure()
- Improve performance with
ActionGroup
- Resolving Dependencies with
ProblemResolver
Group
of packages with the same namePackage
informationPackage
- Example:
Version
Version
Version.arch
Version.depends_list
Version.depends_list_str
Version.downloadable
Version.file_list
Version.hash
Version.id
Version.installed_size
Version.multi_arch
Version.parent_pkg
Version.priority
Version.priority_str
Version.provides_list
Version.section
Version.size
Version.translated_description
Version.is_security_update
Version.ver_str
Dependency
Dependency
Dependency.all_targets()
Dependency.comp_type
Dependency.dep_type
Dependency.dep_type_enum
Dependency.dep_type_untranslated
Dependency.id
Dependency.parent_pkg
Dependency.parent_ver
Dependency.target_pkg
Dependency.target_ver
Dependency.TYPE_CONFLICTS
Dependency.TYPE_DEPENDS
Dependency.TYPE_DPKG_BREAKS
Dependency.TYPE_ENHANCES
Dependency.TYPE_OBSOLETES
Dependency.TYPE_PREDEPENDS
Dependency.TYPE_RECOMMENDS
Dependency.TYPE_REPLACES
Dependency.TYPE_SUGGESTS
- Example: Find all missing dependencies
Description
- Package Pinning with
Policy
- Index Files
- Records (Release files, Packages, Sources)
IndexRecords
PackageRecords
PackageRecords.lookup()
PackageRecords.filename
PackageRecords.hashes
PackageRecords.md5_hash
PackageRecords.sha1_hash
PackageRecords.sha256_hash
PackageRecords.source_pkg
PackageRecords.source_ver
PackageRecords.maintainer
PackageRecords.short_desc
PackageRecords.long_desc
PackageRecords.name
PackageRecords.homepage
PackageRecords.record
SourceRecords
SourceRecordsFile
- The Acquire interface
Acquire
AcquireItem
AcquireItem.complete
AcquireItem.desc_uri
AcquireItem.destfile
AcquireItem.error_text
AcquireItem.filesize
AcquireItem.id
AcquireItem.is_trusted
AcquireItem.local
AcquireItem.mode
AcquireItem.active_subprocess
AcquireItem.status
AcquireItem.STAT_AUTH_ERROR
AcquireItem.STAT_DONE
AcquireItem.STAT_ERROR
AcquireItem.STAT_FETCHING
AcquireItem.STAT_IDLE
AcquireItem.STAT_TRANSIENT_NETWORK_ERROR
AcquireFile
AcquireWorker
AcquireItemDesc
- Hashes
- Debian control files
- Dependencies
- Configuration and Command-line parsing
Configuration
Configuration.get()
Configuration.clear()
Configuration.dump()
Configuration.exists()
Configuration.find()
Configuration.find_b()
Configuration.find_file()
Configuration.find_dir()
Configuration.find_i()
Configuration.keys()
Configuration.list()
Configuration.my_tag()
Configuration.set()
Configuration.subtree()
Configuration.value_list()
config
read_config_file()
read_config_dir()
read_config_file_isc()
parse_commandline()
- Locking
- Other classes
- String functions
- Module Constants
apt_inst
- Working with local Debian packages- Exceptions
- AR Archives
- Debian Packages
- Tar Archives
TarFile
TarMember
TarMember.isblk()
TarMember.ischr()
TarMember.isdev()
TarMember.isdir()
TarMember.isfifo()
TarMember.isfile()
TarMember.islnk()
TarMember.isreg()
TarMember.issym()
TarMember.gid
TarMember.linkname
TarMember.major
TarMember.minor
TarMember.mode
TarMember.mtime
TarMember.name
TarMember.size
TarMember.uid
- Removed functions
apt.cache
— The Cache class- The Cache class
Cache
Cache.actiongroup()
Cache.broken_count
Cache.cache_post_change()
Cache.cache_pre_change()
Cache.clear()
Cache.close()
Cache.commit()
Cache.connect()
Cache.connect2()
Cache.delete_count
Cache.dpkg_journal_dirty
Cache.fetch_archives()
Cache.fix_broken()
Cache.get()
Cache.get_changes()
Cache.get_providing_packages()
Cache.has_key()
Cache.install_archives()
Cache.install_count
Cache.is_virtual_package()
Cache.keep_count
Cache.keys()
Cache.open()
Cache.req_reinstall_pkgs
Cache.required_download
Cache.required_space
Cache.update()
Cache.upgrade()
- Example
- Working with Filters
- The ProblemResolver class
- Exceptions
- The Cache class
apt.cdrom
- Functionality like in apt-cdromapt.debfile
— Classes related to debian package files- Binary packages
DebPackage
DebPackage.VERSION_NEWER
DebPackage.VERSION_NONE
DebPackage.VERSION_OUTDATED
DebPackage.VERSION_SAME
DebPackage.check()
DebPackage.check_breaks_existing_packages()
DebPackage.check_conflicts()
DebPackage.compare_to_version_in_cache()
DebPackage.conflicts
DebPackage.control_content()
DebPackage.control_filelist
DebPackage.data_content()
DebPackage.debug
DebPackage.depends
DebPackage.filelist
DebPackage.install()
DebPackage.missing_deps
DebPackage.open()
DebPackage.provides
DebPackage.replaces
DebPackage.replaces_real_pkg()
DebPackage.required_changes
DebPackage.satisfy_depends_str()
DebPackage.to_hex()
DebPackage.to_strish()
- Source packages
DscSrcPackage
DscSrcPackage.VERSION_NEWER
DscSrcPackage.VERSION_NONE
DscSrcPackage.VERSION_OUTDATED
DscSrcPackage.VERSION_SAME
DscSrcPackage.check()
DscSrcPackage.check_breaks_existing_packages()
DscSrcPackage.check_conflicts()
DscSrcPackage.compare_to_version_in_cache()
DscSrcPackage.conflicts
DscSrcPackage.control_content()
DscSrcPackage.control_filelist
DscSrcPackage.data_content()
DscSrcPackage.debug
DscSrcPackage.depends
DscSrcPackage.filelist
DscSrcPackage.filename
DscSrcPackage.install()
DscSrcPackage.missing_deps
DscSrcPackage.open()
DscSrcPackage.provides
DscSrcPackage.replaces
DscSrcPackage.replaces_real_pkg()
DscSrcPackage.required_changes
DscSrcPackage.satisfy_depends_str()
DscSrcPackage.to_hex()
DscSrcPackage.to_strish()
- Binary packages
apt.package
— Classes for package handling- The Package class
Package
Package.architecture()
Package.candidate
Package.commit()
Package.essential
Package.fullname
Package.get_changelog()
Package.has_config_files
Package.id
Package.installed
Package.installed_files
Package.is_auto_installed
Package.is_auto_removable
Package.is_inst_broken
Package.is_installed
Package.is_now_broken
Package.is_upgradable
Package.mark_auto()
Package.mark_delete()
Package.mark_install()
Package.mark_keep()
Package.mark_upgrade()
Package.marked_delete
Package.marked_downgrade
Package.marked_install
Package.marked_keep
Package.marked_reinstall
Package.marked_upgrade
Package.name
Package.phasing_applied
Package.shortname
Package.versions
- The Version class
Version
Version.architecture
Version.dependencies
Version.description
Version.downloadable
Version.enhances
Version.fetch_binary()
Version.fetch_source()
Version.filename
Version.get_dependencies()
Version.homepage
Version.installed_size
Version.is_installed
Version.is_security_update
Version.md5
Version.origins
Version.policy_priority
Version.priority
Version.provides
Version.raw_description
Version.recommends
Version.record
Version.section
Version.sha1
Version.sha256
Version.size
Version.source_name
Version.source_version
Version.suggests
Version.summary
Version.tasks
Version.uri
Version.uris
Version.version
- Dependency Information
- Origin Information
- The Record class
- Examples
- The Package class
apt.progress.base
— Abstract classes for progress reporting- AcquireProgress
AcquireProgress
AcquireProgress.done()
AcquireProgress.fail()
AcquireProgress.fetch()
AcquireProgress.ims_hit()
AcquireProgress.media_change()
AcquireProgress.pulse()
AcquireProgress.start()
AcquireProgress.stop()
AcquireProgress.current_bytes
AcquireProgress.current_cps
AcquireProgress.current_items
AcquireProgress.elapsed_time
AcquireProgress.fetched_bytes
AcquireProgress.last_bytes
AcquireProgress.total_bytes
AcquireProgress.total_items
- CdromProgress
- OpProgress
- InstallProgress
InstallProgress
InstallProgress.conffile()
InstallProgress.error()
InstallProgress.processing()
InstallProgress.dpkg_status_change()
InstallProgress.status_change()
InstallProgress.start_update()
InstallProgress.finish_update()
InstallProgress.fork()
InstallProgress.run()
InstallProgress.update_interface()
InstallProgress.wait_child()
InstallProgress.percent
InstallProgress.status
InstallProgress.select_timeout
InstallProgress.statusfd
InstallProgress.writefd
- AcquireProgress
apt.progress.text
— Progress reporting for text interfacesaptsources.distinfo
— provide meta information for distro repositoriesaptsources.distro
— Distribution abstraction of the sources.listaptsources.sourceslist
— Provide an abstraction of the sources.listDeb822SourceEntry
Deb822SourceEntry.architectures
Deb822SourceEntry.comment
Deb822SourceEntry.comps
Deb822SourceEntry.disabled
Deb822SourceEntry.dist
Deb822SourceEntry.invalid
Deb822SourceEntry.line
Deb822SourceEntry.merge()
Deb822SourceEntry.set_enabled()
Deb822SourceEntry.str()
Deb822SourceEntry.suites
Deb822SourceEntry.trusted
Deb822SourceEntry.type
Deb822SourceEntry.types
Deb822SourceEntry.uri
Deb822SourceEntry.uris
NullMatcher
SourceEntry
SourceEntryMatcher
SourcesList
is_mirror()
- Tutorials
- Python APT and C++
- Python APT C++ API
- Acquire (pkgAcquire)
- AcquireFile (pkgAcqFile)
- AcquireItem (pkgAcquire::Item)
- AcquireItemDesc (pkgAcquire::ItemDesc)
- AcquireWorker (pkgAcquire::Worker)
- ActionGroup (pkgDepCache::ActionGroup)
- Cache (pkgCache)
- CacheFile (pkgCacheFile)
- Cdrom (pkgCdrom)
- Configuration (Configuration)
- DepCache (pkgDepCache)
- Dependency (pkgCache::DepIterator)
- Description (pkgCache::DescIterator)
- Group (pkgCache::GrpIterator)
- Hashes (Hashes)
- HashString (HashString)
- IndexRecords (indexRecords)
- MetaIndex (metaIndex)
- Package (pkgCache::PkgIterator)
- PackageFile (pkgCache::PkgFileIterator)
- IndexFile (pkgIndexFile)
- OrderList (pkgOrderList)
- PackageManager (pkgPackageManager)
- Policy (pkgPolicy)
- ProblemResolver (pkgProblemResolver)
- SourceList (pkgSourceList)
- TagFile (pkgTagFile)
- TagSection (pkgTagSection)
- Version (pkgCache::VerIterator)
- Embedding Python APT
- Python APT C++ API