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--cdromoption. 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/fstaband 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 causeapt-cdromto prompt for a new label. Configuration Item:APT::CDROM::Rename.-m,--no-mountโ No mounting; preventapt-cdromfrom 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 ifapt-cdromhas 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 havePackagefiles 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 thesources.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 theAPT_CONFIGenvironment variable. Seeapt.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.-oand--optioncan be used multiple times to set different options. Stack 'em, bestie. ๐ฅ--cli-versionโ Requests a specific CLI version. This is a pattern that takes aMAJOR.MINORversion. You may omit theMINORversion, 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 forapt(8)and can also be disabled using theNO_COLORorAPT_NO_COLORenvironment variables, or further configured by theAPT::Colorconfiguration option and scope. Seeapt.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 ๐
- 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
- arch rolling: apt 3.3.5-1 ยท BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND MIT
- nixpkgs unstable: apt 3.3.5
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms