1..
2  Copyright (C) 2014-2018 Red Hat, Inc.
3
4  This copyrighted material is made available to anyone wishing to use,
5  modify, copy, or redistribute it subject to the terms and conditions of
6  the GNU General Public License v.2, or (at your option) any later version.
7  This program is distributed in the hope that it will be useful, but WITHOUT
8  ANY WARRANTY expressed or implied, including the implied warranties of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
10  Public License for more details.  You should have received a copy of the
11  GNU General Public License along with this program; if not, write to the
12  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
13  02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
14  source code or documentation are not subject to the GNU General Public
15  License and may only be used or replicated with the express permission of
16  Red Hat, Inc.
17
18======
19 Sack
20======
21
22.. module:: dnf.sack
23
24.. class:: Sack
25
26  The package sack. Contains metadata information about all known packages, installed and available.
27
28  .. method:: query()
29
30    Return a :class:`Query<dnf.query.Query>` for querying packages contained in this sack.
31
32.. function:: rpmdb_sack(base)
33
34    Returns a new instance of sack containing only installed packages (@System repo). Useful to get list of the installed RPMs after transaction.
35