Go to file
Oliver Kurth 2d1229f910 add --repoid/--repo and --repofrompath options 2021-11-22 23:42:46 +00:00
.github/workflows add photon 3.0 to ci tests 2021-06-24 10:20:27 -07:00
bin Update release version to 3.0.0-beta 2020-10-23 09:46:23 +00:00
ci use Fedora 34 because of gpg issues 2021-11-10 17:26:46 +00:00
client add --repoid/--repo and --repofrompath options 2021-11-22 23:42:46 +00:00
cmake Added tdnf-automatic 2020-10-22 11:33:23 +05:30
common add --repoid/--repo and --repofrompath options 2021-11-22 23:42:46 +00:00
docs Add coding guidelines 2020-05-25 17:49:54 -07:00
etc Added tdnf-automatic 2020-10-22 11:33:23 +05:30
include repoquery: various optimizations, fixes and 2021-10-29 17:34:11 +00:00
plugins ITS issue fixed for tdnf. 2021-09-09 07:27:58 +00:00
pytests repoquery: add repoquery tests 2021-10-29 17:34:11 +00:00
python tdnf-python: various fixes 2021-08-02 07:30:56 +05:30
scripts Added tdnf spec & script to build rpms from spec 2020-12-22 19:14:45 +05:30
solv add --repoid/--repo and --repofrompath options 2021-11-22 23:42:46 +00:00
tools add --repoid/--repo and --repofrompath options 2021-11-22 23:42:46 +00:00
.gitignore add test for noscripts option 2021-04-02 14:28:46 -07:00
CMakeLists.txt bump version to 3.2.0 for dev to avoid confusion 2021-08-04 14:09:34 -07:00
COPYING ITS issue fixed for tdnf. 2021-09-09 07:27:58 +00:00
README.md add testing and coverity instructions in README.md 2020-10-30 18:45:20 +00:00
tdnf.spec.in tdnf-python: various fixes 2021-08-02 07:30:56 +05:30

README.md

tdnf - tiny dandified yum

Build Status

In order to compile, from the checkout directory, run the following

mkdir build && cd build
cmake ..
make

You could also build tdnf using docker using the following commands:

docker build -t photon/tdnf-build -f ci/Dockerfile.photon .
docker run --rm -it -v $(pwd):/build -w /build photon/tdnf-build

create a conf file named tdnf.conf under /etc/tdnf/ with the following content

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
repodir=/etc/yum.repos.d
cachedir=/var/cache/tdnf

Now configure repo files under /etc/yum.repos.d or your repodir following .repo format of dnf/yum.

You should now have a client executable named tdnf under bin/. To test run:

./bin/tdnf list installed

You should see a list of installed packages and their related info

Testing

To build and run the test scripts within a container, do:

export DIST=photon
docker run --security-opt seccomp:unconfined --rm -it -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build ./ci/docker-entrypoint.sh

Same for

export DIST=fedora

Coverity

Assuming you have coverity installed on /pathto/coverity, you can run:

docker run --rm -it -v $(pwd):/build -v /pathto/coverity/:/coverity/ -w /build photon/tdnf-build ./ci/coverity.sh

This will put the output to ./build-coverity. You can then commit the results to the coverity database from that directory, or view the results in ./build-coverity/html. For example, you can start an nginx container:

docker run -it --rm -p 8080:80 --name web -v $(pwd)/build-coverity/html:/usr/share/nginx/html nginx

and then view results in your browser at http://<host>:8080/.