{
    "mode": "man",
    "parameter": "apt-cdrom",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/apt-cdrom/8/json",
    "generated": "2026-06-15T14:23:55Z",
    "synopsis": "apt-cdrom [-rmfan] [-d=cdrommountpoint] [-o=configstring] [-c=configfile] {add | ident |\n{-v | --version} | {-h | --help}}",
    "sections": {
        "NAME": {
            "content": "apt-cdrom - APT CD-ROM management utility\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "apt-cdrom [-rmfan] [-d=cdrommountpoint] [-o=configstring] [-c=configfile] {add | ident |\n{-v | --version} | {-h | --help}}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "apt-cdrom is used to add a new CD-ROM to APT's list of available sources.  apt-cdrom takes\ncare of determining the structure of the disc as well as correcting for several possible\nmis-burns and verifying the index files.\n\nIt is necessary to use apt-cdrom to add CDs to the APT system; it cannot be done by hand.\nFurthermore each disc in a multi-CD set must be inserted and scanned separately to account\nfor possible mis-burns.\n\nUnless the -h, or --help option is given, one of the commands below must be present.\n",
            "subsections": [
                {
                    "name": "add",
                    "content": "add is used to add a new disc to the source list. It will unmount the CD-ROM device,\nprompt for a disc to be inserted and then proceed to scan it and copy the index files. If\nthe disc does not have a proper .disk directory you will be prompted for a descriptive\ntitle.\n\nAPT uses a CD-ROM ID to track which disc is currently in the drive and maintains a\ndatabase of these IDs in /var/lib/apt/cdroms.list\n"
                },
                {
                    "name": "ident",
                    "content": "A debugging tool to report the identity of the current disc as well as the stored file\nname\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "All command line options may be set using the configuration file, the descriptions indicate\nthe configuration option to set. For boolean options you can override the config file by\nusing something like -f-,--no-f, -f=no or several other variations.\n\n--no-auto-detect, --cdrom\nDo not try to auto-detect the CD-ROM path. Usually combined with the --cdrom option.\nConfiguration Item: Acquire::cdrom::AutoDetect.\n",
            "subsections": [
                {
                    "name": "-d --cdrom",
                    "content": "Mount point; specify the location to mount the CD-ROM. This mount point must be listed in\n/etc/fstab and properly configured. Configuration Item: Acquire::cdrom::mount.\n",
                    "flag": "-d",
                    "long": "--cdrom"
                },
                {
                    "name": "-r --rename",
                    "content": "Rename a disc; change the label of a disc or override the disc's given label. This option\nwill cause apt-cdrom to prompt for a new label. Configuration Item: APT::CDROM::Rename.\n",
                    "flag": "-r",
                    "long": "--rename"
                },
                {
                    "name": "-m --no-mount",
                    "content": "No mounting; prevent apt-cdrom from mounting and unmounting the mount point.\nConfiguration Item: APT::CDROM::NoMount.\n",
                    "flag": "-m",
                    "long": "--no-mount"
                },
                {
                    "name": "-f --fast",
                    "content": "Fast Copy; Assume the package files are valid and do not check every package. This option\nshould be used only if apt-cdrom has been run on this disc before and did not detect any\nerrors. Configuration Item: APT::CDROM::Fast.\n",
                    "flag": "-f",
                    "long": "--fast"
                },
                {
                    "name": "-a --thorough",
                    "content": "Thorough Package Scan; This option may be needed with some old Debian 1.1/1.2 discs that\nhave Package files in strange places. It takes much longer to scan the CD but will pick\nthem all up.\n",
                    "flag": "-a",
                    "long": "--thorough"
                },
                {
                    "name": "-n --just-print --recon --no-act",
                    "content": "No Changes; Do not change the sources.list(5) file and do not write index files.\nEverything is still checked however. Configuration Item: APT::CDROM::NoAct.\n",
                    "flag": "-n",
                    "long": "--no-act"
                },
                {
                    "name": "-h --help",
                    "content": "Show a short usage summary.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v --version",
                    "content": "Show the program version.\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "-c --config-file",
                    "content": "Configuration File; Specify a configuration file to use. The program will read the\ndefault configuration file and then this configuration file. If configuration settings\nneed to be set before the default configuration files are parsed specify a file with the\nAPTCONFIG environment variable. See apt.conf(5) for syntax information.\n",
                    "flag": "-c",
                    "long": "--config-file"
                },
                {
                    "name": "-o --option",
                    "content": "Set a Configuration Option; This will set an arbitrary configuration option. The syntax\nis -o Foo::Bar=bar.  -o and --option can be used multiple times to set different options.\n",
                    "flag": "-o",
                    "long": "--option"
                }
            ]
        },
        "SEE ALSO": {
            "content": "apt.conf(5), apt-get(8), sources.list(5)\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "apt-cdrom returns zero on normal operation, decimal 100 on error.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "APT bug page[1]. If you wish to report a bug in APT, please see\n/usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "",
            "subsections": [
                {
                    "name": "Jason Gunthorpe",
                    "content": ""
                },
                {
                    "name": "APT team",
                    "content": ""
                }
            ]
        },
        "NOTES": {
            "content": "1. APT bug page\nhttp://bugs.debian.org/src:apt\n\n\n\nAPT 2.4.14                                30 November 2013                              APT-CDROM(8)",
            "subsections": []
        }
    },
    "summary": "apt-cdrom - APT CD-ROM management utility",
    "flags": [
        {
            "flag": "-d",
            "long": "--cdrom",
            "arg": null,
            "description": "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."
        },
        {
            "flag": "-r",
            "long": "--rename",
            "arg": null,
            "description": "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."
        },
        {
            "flag": "-m",
            "long": "--no-mount",
            "arg": null,
            "description": "No mounting; prevent apt-cdrom from mounting and unmounting the mount point. Configuration Item: APT::CDROM::NoMount."
        },
        {
            "flag": "-f",
            "long": "--fast",
            "arg": null,
            "description": "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."
        },
        {
            "flag": "-a",
            "long": "--thorough",
            "arg": null,
            "description": "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."
        },
        {
            "flag": "-n",
            "long": "--no-act",
            "arg": null,
            "description": "No Changes; Do not change the sources.list(5) file and do not write index files. Everything is still checked however. Configuration Item: APT::CDROM::NoAct."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show a short usage summary."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Show the program version."
        },
        {
            "flag": "-c",
            "long": "--config-file",
            "arg": null,
            "description": "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 APTCONFIG environment variable. See apt.conf(5) for syntax information."
        },
        {
            "flag": "-o",
            "long": "--option",
            "arg": null,
            "description": "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."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "apt.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/apt.conf/5/json"
        },
        {
            "name": "apt-get",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/apt-get/8/json"
        },
        {
            "name": "sources.list",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/sources.list/5/json"
        }
    ]
}