Go to file
Oliver Kurth b5e30edd03 add TDNFFindRepoById() and TDNFCurlErrorIsFatal() 2020-11-19 12:03:49 -08: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 add TDNFFindRepoById() and TDNFCurlErrorIsFatal() 2020-11-19 12:03:49 -08:00
cmake Added tdnf-automatic 2020-10-22 11:33:23 +05:30
common ppszDst may be used uninitialized in TDNFAllocateStringArray() 2020-10-21 22:22:53 -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 no need for ssl options in _TDNF_REPO_DATA 2020-11-16 13:00:36 -08:00
plugins Fixed TDNFDownloadFile call in repogpgcheck plugin 2020-10-01 16:32:42 +05:30
pytests Update release version to 3.0.0-beta 2020-10-23 09:46:23 +00:00
python Added tdnf-automatic 2020-10-22 11:33:23 +05:30
solv Allow alter type ALTER_UPGRADE to call SolvAddExcludes() 2020-09-11 18:11:58 +05:30
tools Fix Coverity Issues 2020-10-27 20:00:56 +05:30
.gitignore Added tdnf-automatic 2020-10-22 11:33:23 +05:30
.travis.yml Run CI containers without the default seccomp profile 2020-06-11 09:27:03 +00:00
CMakeLists.txt Update release version to 3.0.0-beta 2020-10-23 09:46:23 +00: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

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