{"id":19871924,"url":"https://github.com/saltstack-formulas/apt-formula","last_synced_at":"2025-04-05T11:08:01.498Z","repository":{"id":9746521,"uuid":"11709657","full_name":"saltstack-formulas/apt-formula","owner":"saltstack-formulas","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-06T23:06:51.000Z","size":301,"stargazers_count":25,"open_issues_count":12,"forks_count":90,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-03-29T10:07:16.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saltstack-formulas.png","metadata":{"files":{"readme":"docs/README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-27T19:09:36.000Z","updated_at":"2022-04-18T15:24:58.000Z","dependencies_parsed_at":"2023-10-03T14:07:28.248Z","dependency_job_id":"29a3a8af-60e6-4dda-9c01-15d4b384d06e","html_url":"https://github.com/saltstack-formulas/apt-formula","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fapt-formula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fapt-formula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fapt-formula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fapt-formula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saltstack-formulas","download_url":"https://codeload.github.com/saltstack-formulas/apt-formula/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T16:13:59.787Z","updated_at":"2025-04-05T11:08:01.479Z","avatar_url":"https://github.com/saltstack-formulas.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":".. _readme:\n\napt\n===\n\n|img_travis| |img_sr|\n\n.. |img_travis| image:: https://travis-ci.com/saltstack-formulas/apt-formula.svg?branch=master\n   :alt: Travis CI Build Status\n   :scale: 100%\n   :target: https://travis-ci.com/saltstack-formulas/apt-formula\n.. |img_sr| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n   :alt: Semantic Release\n   :scale: 100%\n   :target: https://github.com/semantic-release/semantic-release\n\nA formula to configure and manage update, upgrade, and dist-upgrade within apt.\n\n.. contents:: **Table of Contents**\n   :depth: 1\n\nGeneral notes\n-------------\n\nSee the full `SaltStack Formulas installation and usage instructions\n\u003chttps://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html\u003e`_.\n\nIf you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section\n\u003chttps://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas\u003e`_.\n\nIf you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,\nwhich contains the currently released version. This formula is versioned according to `Semantic Versioning \u003chttp://semver.org/\u003e`_.\n\nSee `Formula Versioning Section \u003chttps://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning\u003e`_ for more details.\n\nContributing to this repo\n-------------------------\n\n**Commit message formatting is significant!!**\n\nPlease see `How to contribute \u003chttps://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst\u003e`_ for more details.\n\nAvailable states\n----------------\n\n.. contents::\n   :local:\n\n``apt.dist_upgrade``\n^^^^^^^^^^^^^^^^^^^^\n\nRuns ``apt-get -y dist-upgrade``.\n\n``apt.update``\n^^^^^^^^^^^^^^\n\nRuns ``apt-get -y update``.\n\n``apt.upgrade``\n^^^^^^^^^^^^^^^\n\nRuns ``apt-get -y upgrade``.\n\n``apt.repositories``\n^^^^^^^^^^^^^^^^^^^^\n\nAllows you to configure and manage repositories from pillar. Check ``pillar.example``\nto see possible values. If used and no repositories are provided, sane default\nvalues from ``map.jinja`` are used.\n\nCheck https://wiki.debian.org/SourcesList for an explanation about the resulting\nfiles structure.\n\n``apt.apt_conf``\n^^^^^^^^^^^^^^^^^^^\n\nAllows you to manage apt configuration from pillar. Check ``pillar.example`` to see\npossible values.\n\nCheck https://wiki.debian.org/AptConfiguration#apt.conf and ``man 5 apt.conf`` for\nan explanation about the resulting files structure.\n\n``apt.preferences``\n^^^^^^^^^^^^^^^^^^^\n\nAllows you to configure and manage apt's preferences from pillar. Check\n``pillar.example`` to see possible values.\n\nCheck https://wiki.debian.org/AptConfiguration#apt_preferences_.28APT_pinning.29\nand ``man 5 apt_preferences`` for an explanation about the resulting files structure.\n\n``apt.ppa``\n^^^^^^^^^^^\nInstalls ``python-software-properties``\n(``$ /usr/bin/apt-add-repository ppa:user/repository``).\n\n``apt.unattended``\n^^^^^^^^^^^^^^^^^^\nInstalls and configures ``unattended-upgrades``\n\n``apt.transports.debtorrent``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nInstalls ``apt-transport-debtorrent``.\n\n``apt.transports.https``\n^^^^^^^^^^^^^^^^^^^^^^^^\nInstalls ``apt-transport-https``. **Note that `apt-transport-https` has been deprecated\nsince Debian 9 and it's now a dummy package**\n\nTesting\n-------\n\nLinux testing is done with ``kitchen-salt``.\n\nRequirements\n^^^^^^^^^^^^\n\n* Ruby\n* Docker\n\n.. code-block:: bash\n\n   $ gem install bundler\n   $ bundle install\n   $ bin/kitchen test [platform]\n\nWhere ``[platform]`` is the platform name defined in ``kitchen.yml``,\ne.g. ``debian-9-2019-2-py3``.\n\n``bin/kitchen converge``\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nCreates the docker instance and runs the ``apt`` main state, ready for testing.\n\n``bin/kitchen verify``\n^^^^^^^^^^^^^^^^^^^^^^\n\nRuns the ``inspec`` tests on the actual instance.\n\n``bin/kitchen destroy``\n^^^^^^^^^^^^^^^^^^^^^^^\n\nRemoves the docker instance.\n\n``bin/kitchen test``\n^^^^^^^^^^^^^^^^^^^^\n\nRuns all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.\n\n``bin/kitchen login``\n^^^^^^^^^^^^^^^^^^^^^\n\nGives you SSH access to the instance for manual testing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltstack-formulas%2Fapt-formula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaltstack-formulas%2Fapt-formula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltstack-formulas%2Fapt-formula/lists"}