EnglishFrenchSpanish

OnWorks favicon

apt-file - Online in the Cloud

Run apt-file in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command apt-file that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


apt-file - APT package searching utility -- command-line interface

SYNOPSIS


apt-file [ options ] [ action ] [ pattern ]

apt-file -f [ options ] search [ file ... ]

apt-file -D [ options ] search [ binary-packet.deb ... ]

DESCRIPTION


apt-file is a command line tool for searching files in packages for the APT package
management system.

Some actions are required to run the search:

find Alias for search.

list List the contents of a package matching the pattern pattern. This action is very
close to the dpkg -L command except the package does not need to be installed or
fetched.

purge remove all Contents-* files from the cache directory.

search Search in which package a file is included. A list of all packages containing the
pattern pattern is returned.

apt-file will only search for filenames, not directory names. This is due to the
format of the Contents files it searches.

show Alias for list.

update Resynchronize the package contents from their sources. The lists of the contents of
packages are fetched from the location(s) specified in /etc/apt/sources.list. This
command attempts to fetch the Contents-<ARCH>.gz files from remote sources. For
downloading these uses either the curl or wget commands as specified in apt-
file.conf.

OPTIONS


-a, --architecture architecture
Sets architecture to architecture. This option is useful if you search a package
for a different architecture from the one installed on your system. It determines
how the $ARCH variable in sources.list is expanded (but it does not influence the
search in any other way).

-c, --cache cache-directory
Sets the cache directory to cache-directory instead of its default. If executed as
non-root user, the default is $HOME/.cache/apt-file with fall-back to
/var/cache/apt/apt-file. The latter is also the default if apt-file is called as
root.

-d, --cdrom-mount cdrom-mount-point
Use cdrom-mount-point instead of apt's.

-D, --from-deb
Use contents of the given .deb archives(s) as patterns. Useful for searching for
file conflicts with other packages. Implies -F.

-f, --from-file
Read patterns from the given file(s), one per line. Use - as filename for stdin.
If no files are given, then the list will be read from stdin. This is much faster
than invoking apt-file many times.

-F, --fixed-string
Do not expand search pattern with generic characters at pattern's start and end.

-i, --ignore-case
Ignore case when searching for pattern.

-l, --package-only
Only display package name; do not display file names.

-N, --non-interactive
Skip schemes that are listed in the interactive line in apt-file.conf. This is
useful if you want to call 'apt-file update' in cron jobs and skip all schemes that
may require user input.

-s, --sources-list sources.list
Sets the sources.list file to a different value from its default
/etc/apt/sources.list.

-v, --verbose
Run apt-file in verbose mode.

-x, --regexp
Treat pattern as a (perl) regular expression. See perlreref(1) for details. Without
this option, pattern is treated as a literal string to search for.

-y, --dummy
Run in dummy mode (no action).

-h, --help
Display a short help screen.

CONFIGURATION FILE


The apt-file configuration file can be found in /etc/apt/apt-file.conf.

A string expansion is done on several values. See the string expansion section.

destination
This variable describes how cached files will be named.

http | ftp | ssh | rsh | file | cdrom
Defines the commands used to fetch files.

STRING EXPANSION
A sources.list entry is defined as:

deb uri dist component1 component2 ...

A uri is defined as:

proto:/[/][user[:password]@]host[:port][/path]

<host> replace with the hostname

<port> replace with the port number

<uri> replace with full uri

<path> replace with full path (relative to / on the host)

<dist> replace with distribution name

<comp> replace with component name

<cache>
replace with cache directory

<dest> replace with destination expanded value.

<cdrom>
replace with cdrom-mount-point.

Use apt-file online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 2
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 3
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 4
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 5
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 6
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    coresendmsg
    coresendmsg
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server
    core_server
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    fwflash
    fwflash
    fwflash - program to flash image file
    to a connected NXT device ...
    Run fwflash
  • 6
    fwts-collect
    fwts-collect
    fwts-collect - collect logs for fwts
    bug reporting. ...
    Run fwts-collect
  • More »

Ad