Go to file
Oliver Kurth 55337af751
Merge pull request #242 from oliverkurth/topic/okurth/no-fail-on-empty-list
don't fail if 'tdnf list <scope>' is empty unless it's a package spec, fixes issue #94
2021-06-23 11:29:46 -07:00
.github/workflows Move CI away from Travis to github workflow 2021-06-14 11:26:03 -07:00
bin Update release version to 3.0.0-beta 2020-10-23 09:46:23 +00:00
ci add script run coverity checks inside a container 2020-10-30 18:45:09 +00:00
client don't fail if 'tdnf list <scope>' is empty unless it's a package spec, fixes issue #94 2021-06-21 14:21:25 -07:00
cmake Added tdnf-automatic 2020-10-22 11:33:23 +05:30
common reposync: implement --newest-only option 2021-05-28 12:18:44 -07: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 reposync: implement --newest-only option 2021-05-28 12:18:44 -07:00
plugins move special metalink handling out of TDNFDownloadFile() to caller 2021-05-27 13:36:46 -07:00
pytests remove workaround for issue #94 2021-06-21 14:21:36 -07:00
python print updateinfo and other warnings even if in quiet mode 2021-02-18 10:35:19 +00:00
scripts Added tdnf spec & script to build rpms from spec 2020-12-22 19:14:45 +05:30
solv reposync: implement --newest-only option 2021-05-28 12:18:44 -07:00
tools reposync: add help 2021-05-28 12:18:44 -07:00
.gitignore add test for noscripts option 2021-04-02 14:28:46 -07:00
CMakeLists.txt bump version in dev branch to 3.1.0 2021-04-01 12:55:51 -07:00
COPYING Update license info 2015-04-15 17:10:08 -04:00
README.md add testing and coverity instructions in README.md 2020-10-30 18:45:20 +00:00
tdnf.spec.in use %{_unitdir} for SYSTEM_DIR 2021-01-19 14:36:37 -08:00

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