Skip to content

maciex/nosr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

nosr - search for files in packages

SYNOPSIS

Usage: nosr [operation] [options] target

DESCRIPTION

nosr searches the .files metadata created by repo-add(8) to retrieve information about packages, including those which might not be currently installed. By default, the provided target is considered to be a filename and nosr will return the package(s) which contain this file. The repos which nosr searches is determined by those enabled in /etc/pacman.conf.

OPERATIONS

-l, --list

The target is considered to be a package name rather than a filename, and the contents of the named package are returned. This allows for repo/package style syntax to limit the depth of the search.

Search for packages containing the provided target. This is the default mode of operation.

-u, --update

Update the stored metadata files. It is recommended to create a daily cron job with this command to ensure accurate results.

FILTERING

-b, --binaries

Return only files which are contained within a bin or sbin directory.

-g, --glob

Enable shell-style glob pattern matching. See glob(7).

-h, --help

Display the help message and quit.

-i, --ignorecase

Disable case sensitivity in matching.

-r, --regex

Enable regular expression matching. See pcre(3).

-R, --repo

Search only the specific repo.

-v, --verbose

Output more. This applies to the search operation.

MATCHING

In --search mode and without the --regex or --glob option, nosr will attempt to match the provided target as an exact filename. If the target contains a '/' character, a full path match will be attempted. With --regex and --glob enabled searching, nosr will always match against the full pathname.

In --list mode and without the --regex or --glob option, nosr will attempt to match the provided target as an exact package name. If the target contains a '/' character, the text before the slash will be assumed to be a repository and the search will be restricted. This behavior is disabled with --glob and --regex, and only matching against the package name will occur.

FILES

/var/cache/nosr

Storage location for metadata.

SEE ALSO

repo-add(8), pcre(3), glob(7), pacman.conf(5)

AUTHOR

Dave Reisner <dreisner@archlinux.org>

About

It's rson, but backwards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.6%
  • Perl 8.4%