All Projects → repology → Repology Updater

repology / Repology Updater

Licence: gpl-3.0
Repology backend service to update repository and package data

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Repology Updater

repology-rules
Package normalization ruleset for Repology
Stars: ✭ 67 (-80.75%)
Mutual labels:  package, packages, repository, version
repology-webapp
Repology web application
Stars: ✭ 114 (-67.24%)
Mutual labels:  package, packages, repository
Npmvet
A simple CLI tool for vetting npm package versions
Stars: ✭ 193 (-44.54%)
Mutual labels:  version, package, packages
hej
Hej! is a simple authentication boilerplate for Socialite.
Stars: ✭ 111 (-68.1%)
Mutual labels:  package, packages
Universe
The Mesosphere Universe package repository.
Stars: ✭ 308 (-11.49%)
Mutual labels:  package, repository
Please Upgrade Node
💁 Show a message to your users to upgrade Node instead of a stacktrace
Stars: ✭ 219 (-37.07%)
Mutual labels:  version, package
Patchman
Patchman is a Linux Patch Status Monitoring System
Stars: ✭ 163 (-53.16%)
Mutual labels:  package, repository
lint-deps
Lint for unused or missing dependencies in your node.js projects. Customize with plugins or configuration.
Stars: ✭ 48 (-86.21%)
Mutual labels:  package, packages
devliver
Your private self hosted composer repository with user management
Stars: ✭ 50 (-85.63%)
Mutual labels:  package, repository
repogen
Easy-to-use signed APT repository generator with a web-based package browser.
Stars: ✭ 34 (-90.23%)
Mutual labels:  package, repository
ferryd
Fast, safe and reliable transit for the delivery of software updates to users.
Stars: ✭ 43 (-87.64%)
Mutual labels:  package, repository
Packages
Aim to be the bioinformatics repository with more and newer packages
Stars: ✭ 13 (-96.26%)
Mutual labels:  packages, repository
Semantic Release
📦🚀 Fully automated version management and package publishing
Stars: ✭ 14,364 (+4027.59%)
Mutual labels:  version, package
app-version-laravel
Laravel application versioning
Stars: ✭ 24 (-93.1%)
Mutual labels:  package, version
Pip Check
pip-check gives you a quick overview of all installed packages and their update status.
Stars: ✭ 134 (-61.49%)
Mutual labels:  version, package
Cli
🆑📍 Setup automated semver compliant package publishing
Stars: ✭ 272 (-21.84%)
Mutual labels:  version, package
Antergos Packages
PKGBUILD's for antergos packages
Stars: ✭ 119 (-65.8%)
Mutual labels:  packages, repository
Xmake Repo
📦 An official xmake package repository
Stars: ✭ 130 (-62.64%)
Mutual labels:  package, repository
version-check
An action that allows you to check whether your npm package version has been updated
Stars: ✭ 65 (-81.32%)
Mutual labels:  package, version
larafy
Larafy is a Laravel package for Spotify API. It is more like a wrapper for the Spotify API.
Stars: ✭ 53 (-84.77%)
Mutual labels:  package, packages

Repology

CI codecov

Repology is a service which monitors a lot of package repositories and other sources and aggregates data on software package versions, reporting new releases and packaging problems.

This repository contains Repology updater code, a backend service which updates the repository information. See also the web application code.

Dependencies

Needed for fetching/parsing repository data:

Development dependencies

Optional, for doing HTML validation when running tests:

Optional, for checking schemas of configuration files:

Optional, for python code linting:

Running

Preparing

Since repology rules live in separate repository you'll need to clone it first. The location may be arbitrary, but rules.d subdirectory is what default configuration file points to, so using it is the most simple way.

git clone https://github.com/repology/repology-rules.git rules.d

Configuration

First, you may need to tune settings which are shared by all repology utilities, such as directory for storing downloaded repository state or DSN (string which specifies how to connect to PostgreSQL database). See repology.conf.default for default values, create repology.conf in the same directory to override them (don't edit repology.conf.default!) or specify path to alternative config via REPOLOGY_SETTINGS environment variable, or override settings via command line.

By default, repology uses ./_state directory for storing raw and parsed repository data and repology/repology/repology database/user/password on localhost.

Creating the database

For the following steps you'll need to set up the database. Ensure PostgreSQL server is up and running, and execute the following commands to create the database for repology:

psql --username postgres -c "CREATE DATABASE repology"
psql --username postgres -c "CREATE USER repology WITH PASSWORD 'repology'"
psql --username postgres -c "GRANT ALL ON DATABASE repology TO repology"
psql --username postgres --dbname repology -c "CREATE EXTENSION pg_trgm"
psql --username postgres --dbname repology -c "CREATE EXTENSION libversion"

in the case you want to change the credentials, don't forget to add actual ones to repology.conf.

Next you can create database schema (tables, indexes etc.) and at the same time test that the database is accessible with the following command:

./repology-update.py --initdb

Fetching/updating repository data

The database is now ready to be filled with data. Typical Repology update cycle consists of multiple steps, but in most cases you'll need to just run all of them:

./repology-update.py --fetch --fetch --parse --database --postupdate
  • --fetch tells the utility to fetch raw repository data (download files, scrape websites, clone git repos) into state directory. Note that it won't refetch (update) data unless it's specified twice.
  • --parse enables parsing downloaded data into internal format which is also saved into state directory.
  • --database pushes processed package data into the database.
  • --postupdate runs additional database processing such as calculating summaries and updating feeds. It's separate from --database because it can be ran in background, parallelly to the following fetch/update cycle.

Documentation

Author

License

GPLv3 or later, see COPYING.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].