Editing Back up your applications
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
To follow this tutorial, you need root access on your device and the following tools: | To follow this tutorial, you need root access on your device and the following tools: | ||
*Terminal emulator (X Terminal or SSH) | *Terminal emulator (X Terminal or SSH) | ||
- | *VIM editor (Available in | + | *VIM editor (Available in Extras) |
== Create the Archive folder == | == Create the Archive folder == | ||
* Open a terminal emulator and create the required folders using the following command: | * Open a terminal emulator and create the required folders using the following command: | ||
<pre> | <pre> | ||
- | + | mkdir /home/user/MyDocs/apt-archive-cache | |
- | + | mkdir /home/user/MyDocs/apt-archive-cache/archives | |
- | + | mkdir /home/user/MyDocs/apt-archive-cache/archives/partial | |
</pre> | </pre> | ||
- | + | If you wish to use a different folder, substitue /home/user/MyDocs with the desired path. | |
- | + | ||
- | + | ||
- | + | ||
- | If you wish to use a different folder, | + | |
== Create Package-List == | == Create Package-List == | ||
*As a normal user type the following command to create a file (package.list) that contains a list of all the packages installed on the device: | *As a normal user type the following command to create a file (package.list) that contains a list of all the packages installed on the device: | ||
- | <pre>$ dpkg --get-selections|grep install|grep -v deinstall>/home/user/package.list | + | :<pre>$ dpkg --get-selections|grep install|grep -v deinstall>/home/user/package.list |
</pre> | </pre> | ||
Line 36: | Line 32: | ||
For example, if you just want to download a copy of the package ''abiword'', then you should: | For example, if you just want to download a copy of the package ''abiword'', then you should: | ||
*As a normal user type the following command: | *As a normal user type the following command: | ||
- | <pre>$ cat /home/user/package.list|grep abiword> | + | <pre>$ cat /home/user/package.list|grep abiword>package-abiword.list</pre> |
If you want to download all packages, except one of them: ''debconf'', for example. Then you should: | If you want to download all packages, except one of them: ''debconf'', for example. Then you should: | ||
*As a normal user type the following command: | *As a normal user type the following command: | ||
- | <pre>$ cat /home/user/package.list|grep -v debconf> | + | <pre>$ cat /home/user/package.list|grep -v debconf>package-without-debconf.list</pre> |
== Edit Package-List == | == Edit Package-List == | ||
Line 89: | Line 85: | ||
== Install Package-List == | == Install Package-List == | ||
- | |||
- | |||
To install all the packages from the list: | To install all the packages from the list: | ||
* open the package.list file in VIM | * open the package.list file in VIM | ||
Line 113: | Line 107: | ||
== Dependencies == | == Dependencies == | ||
* executing package.list will only download the package, not the dependencies. This may create problems during restore when the package dependencies are not available in the archive. Of course, this would only be a problem if the package list was a selection of the entire system package list. When downloading the entire system package list, all packages would be available and dependecies would not be an issue. | * executing package.list will only download the package, not the dependencies. This may create problems during restore when the package dependencies are not available in the archive. Of course, this would only be a problem if the package list was a selection of the entire system package list. When downloading the entire system package list, all packages would be available and dependecies would not be an issue. | ||
- | + | - safe way would be to remove the application via 'apt-get remove' and 'apt-get autoremove' and then use the apt-get with the -d and -o option to download the package with the dependencies. | |
== Further Questions == | == Further Questions == | ||
If you have further questions, do not hesitate to place the question here in this section, and it will be answered in short. | If you have further questions, do not hesitate to place the question here in this section, and it will be answered in short. | ||
- | |||
- | |||
- | |||
- | |||
- |
Learn more about Contributing to the wiki.