|
|
(未显示同一用户的2个中间版本) |
第1行: |
第1行: |
| + | #REDIRECT [[UbuntuHelp:Repositories/Personal]] |
| {{From|https://help.ubuntu.com/community/PackageCDs}} | | {{From|https://help.ubuntu.com/community/PackageCDs}} |
| {{Languages|UbuntuHelp:PackageCDs}} | | {{Languages|UbuntuHelp:PackageCDs}} |
− | If you cannot use the DVD images for some reason or want to help a friend with low internet bandwidth,
| |
− | here is a simple way to make your own transportable package CD:
| |
− | 0. Before following up check (i.e. the Synaptic package manager) if the "dpkg-dev" package is installed on your system.
| |
− | 1. Download all needed packages you wanna backup or add to the package cd
| |
− | 2. Put them all in one directory (preferable inside your home folder)
| |
− | 3. Open a terminal window via Applications > Tools > Terminal
| |
− | 4. Use the "ls" and "cd" commands jumping to the regarding directory
| |
− | 5. Type "dpkg-scanpackages . /dev/null | gzip > Packages.gz"
| |
− |
| |
− | If the "dpkg-dev" package is missed you will get the system error "dpkg-scanpackages : command not found"
| |
− | Don't worry if you get this kind of errors:
| |
− | Example:
| |
− | ! Package firefox (filename ./firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb) is repeat but newer version;
| |
− | used that one and ignored data from ./firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb !
| |
− | this just means that:
| |
− | "firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb" package version
| |
− | will not be added to the package list. Instead of the newer:
| |
− | "firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb" package version
| |
− | will be added to the package list.
| |
− | 6. Burn the directory on CD.
| |
− |
| |
− | You can later add the CD as a package source with "sudo apt-cdrom add" or via the Synaptic package manager.
| |
− | By default, the Synaptic package manager stores upgraded/downloaded packages at the "/var/cache/apt/archives/" location. If you wanna make a package cd of this files you should copy "/var/cache/apt/archives/" to another folder. After proceeding follow up with step 3 like mentioned above.
| |
− | It is not necessary to use the "sudo" command to run "dpkg-scanpackages . /dev/null | gzip > Packages.gz" for folders located inside your home folder!
| |
− | === See also ===
| |
− | * AptCdrom
| |
− | [[category:CategoryOffline]] [[category:CategoryPackageManagement]]
| |
| | | |
| [[category:UbuntuHelp]] | | [[category:UbuntuHelp]] |