APT-CDROM(8)

๐Ÿ’ฟ APT-CDROM(8) โ€” apt-cdrom, section 8, the CD-ROM management era ๐Ÿ’…

okay so bestie, this is the manual page for apt-cdrom, and yes we're in section 8 because it's a sysadmin situation. Buckle up ๐ŸŽ€


โœจ NAME โœจ

apt-cdrom โ€” the APT CD-ROM management utility. That's it, that's the whole job description, and it does it beautifully. ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

apt-cdrom [-rmfan] [-d=cdrom_mount_point] [-o=config_string]
          [-c=config_file] {add | ident | {-v | --version} |
          {-h | --help}}

๐Ÿ’– DESCRIPTION ๐Ÿ’–

So apt-cdrom is the girl whose entire personality is adding a new CD-ROM to APT's list of available sources. She takes care of determining the structure of the disc, she corrects for several possible mis-burns (iconic of her honestly), and she verifies the index files. All in a day's work. ๐Ÿ‘‘

And like, hard truth incoming: it is necessary to use apt-cdrom to add CDs to the APT system. It cannot be done by hand. No shortcuts, no DIY, no "I'll just edit the file myself" energy. Furthermore โ€” and this is the part people always forget โ€” each disc in a multi-CD set must be inserted and scanned separately to account for possible mis-burns. Yes, every single one. ๐Ÿ™ˆ

Unless the -h or --help option is given, one of the commands below must be present. No command, no vibe check, no service. ๐Ÿ’€

๐Ÿงš add

add is used to add a new disc to the source list. It will unmount the CD-ROM device, prompt for a disc to be inserted, and then proceed to scan it and copy the index files. If the disc does not have a proper .disk directory you will be prompted for a descriptive title. She's asking because she cares. ๐Ÿซถ

APT uses a CD-ROM ID to track which disc is currently in the drive and maintains a database of these IDs in /var/lib/apt/cdroms.list. Bestie keeps receipts. ๐Ÿ“

๐ŸŽ€ ident

A debugging tool to report the identity of the current disc as well as the stored file name. It's the "who are you and where do you live" command. Lowkey iconic. ๐Ÿ”


๐Ÿ’… OPTIONS ๐Ÿ’…

All command line options may be set using the configuration file, and the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like -f-, --no-f, -f=no or several other variations. Mix and match, it's giving customisation. โœจ

  • --no-auto-detect, --cdrom โ€” Do not try to auto-detect the CD-ROM path. Usually combined with the --cdrom option. Configuration Item: Acquire::cdrom::AutoDetect.
  • -d, --cdrom โ€” Mount point; specify the location to mount the CD-ROM. This mount point must be listed in /etc/fstab and properly configured. Configuration Item: Acquire::cdrom::mount.
  • -r, --rename โ€” Rename a disc; change the label of a disc or override the disc's given label. This option will cause apt-cdrom to prompt for a new label. Configuration Item: APT::CDROM::Rename.
  • -m, --no-mount โ€” No mounting; prevent apt-cdrom from mounting and unmounting the mount point. Configuration Item: APT::CDROM::NoMount.
  • -f, --fast โ€” Fast Copy; assume the package files are valid and do not check every package. This option should be used only if apt-cdrom has been run on this disc before and did not detect any errors. Configuration Item: APT::CDROM::Fast.
  • -a, --thorough โ€” Thorough Package Scan; this option may be needed with some old Debian 1.1/1.2 discs that have Package files in strange places. It takes much longer to scan the CD but will pick them all up. Slow and thorough, the way we love her. ๐Ÿข
  • -n, --just-print, --recon, --no-act โ€” No Changes; do not change the sources.list(5) file and do not write index files. Everything is still checked, however. All the looking, none of the committing. ๐Ÿ‘€
  • -h, --help โ€” Show a short usage summary.
  • -v, --version โ€” Show the program version.
  • --audit โ€” Show audit (and notice) messages. This overrides the quiet option, but only for notice messages, not progress ones. Very specific, very demure. ๐ŸŽ€
  • -c, --config-file โ€” Configuration File; specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed, specify a file with the APT_CONFIG environment variable. See apt.conf(5) for syntax information.
  • -o, --option โ€” Set a Configuration Option; this will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be used multiple times to set different options. Stack 'em, bestie. ๐Ÿฅž
  • --cli-version โ€” Requests a specific CLI version. This is a pattern that takes a MAJOR.MINOR version. You may omit the MINOR version, in which case the latest supported minor level will be used.

Version tracks are presented as follows: the version 3.2 has equivalent versions 0.32, 1.22, and 2.12, implementing new features for their specified major versions.

A special case is the X.9 version pattern: a version like 2.9 is followed by 3.0, but 2.10 follows directly on 2.8; given that we use odd version numbers as development series (2.9 is the 3.0 development series).

This feature has been introduced in APT 3.1.10, and replaces the binary-specific configuration. You may use the APT::Version to similar effect on older binaries. For example, use -o APT::Version=2 to make apt(8) behave like the 2.x series.

The default value is the current APT version for apt(8) and 0.(10 * major + minor) for the classic commands. The 0.X series is soft-deprecated and the other commands will roll over to the 2.x series in the future. โณ

  • --no-color, --color โ€” Turn colors on or off. Colors are on by default on supported terminals for apt(8) and can also be disabled using the NO_COLOR or APT_NO_COLOR environment variables, or further configured by the APT::Color configuration option and scope. See apt.conf(5) for information on that. ๐ŸŒˆ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

apt.conf(5), apt-get(8), sources.list(5) โ€” go read your friends, they miss you. ๐Ÿซถ


๐ŸŒŸ DIAGNOSTICS ๐ŸŒŸ

apt-cdrom returns zero on normal operation, decimal 100 on error. Zero = slay. 100 = something went off. ๐Ÿ’€


๐Ÿฆ‹ BUGS ๐Ÿฆ‹

APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Jason Gunthorpe

APT team


๐Ÿ“ NOTES ๐Ÿ“

  1. APT bug page https://bugs.debian.org/src:apt

fr fr, don't hand-edit your sources and pretend it's the same thing โ€” it's not, and she will notice. ๐Ÿ’…

and that's the whole page, bestie โ€” brought to you by APT 3.3.5, dated 30 November 2013, and delivered to you with main character energy. mwah ๐ŸŽ€โœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from