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 3: | Line 3: | ||
Let us suppose that you are using a very special application. It may be possible that after a long time of use, the repository from where you downloaded your application is not available any more. It may also be possible that, after a long use, something happened to your device, and you need to reinstall your favorite application. | Let us suppose that you are using a very special application. It may be possible that after a long time of use, the repository from where you downloaded your application is not available any more. It may also be possible that, after a long use, something happened to your device, and you need to reinstall your favorite application. | ||
- | + | I am going to explain you a way to keep a copy of the DEB package of your favorite application, so that you can install it again even if the package is not available any more from the repositories. | |
- | + | ||
- | + | ||
== Needed Tools and Skills == | == Needed Tools and Skills == | ||
- | To follow this tutorial, you need | + | To follow this tutorial, you need some tools and skills. You need: |
- | *Terminal emulator | + | *Terminal emulator |
- | * | + | *Root access |
+ | *VI editor | ||
- | == | + | == First Step == |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | *Open a terminal emulator | |
+ | *As a normal user type the following command: | ||
+ | **$ dpkg --get-selections|grep install|grep -v deinstall>/home/user/package.list | ||
- | + | == Second Step == | |
- | + | ||
- | + | ||
- | + | After previous step, you have a list with all packages installed on your device. | |
- | + | In case you just want to download some packages of that list, you should edit it and remove the lines you do not need. | |
+ | |||
+ | I am going to show you an easy way to do that. Let us suppose that 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: | ||
- | + | **$ cat /home/user/package.list|grep abiword>package-abiword.list | |
- | + | Let us suppose that 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: | ||
- | + | **$ cat /home/user/package.list|grep -v debconf>package-without-debconf.list | |
- | == | + | == Third (and Last) Step == |
After previous steps, you have a list with all the desired packages you want to download to your device. In our previous examples this list could be any one of these: | After previous steps, you have a list with all the desired packages you want to download to your device. In our previous examples this list could be any one of these: | ||
Line 51: | Line 41: | ||
Now you just need to edit this list in order to use it with ''apt-get'': | Now you just need to edit this list in order to use it with ''apt-get'': | ||
*As a normal user type the following command: | *As a normal user type the following command: | ||
- | + | **$ vi /home/user/package.list | |
*After ''vi'' editor is running, then type the following command: | *After ''vi'' editor is running, then type the following command: | ||
- | + | ** :%s!install!! | |
*This last command will clean the lines, removing the word ''install'' and leaving just the name of the packages. Now we want to add an order for ''apt-get'' to download the desired packages, so type the following command: | *This last command will clean the lines, removing the word ''install'' and leaving just the name of the packages. Now we want to add an order for ''apt-get'' to download the desired packages, so type the following command: | ||
- | + | ** :%s!^!apt-get --force-yes -yy -d install --reinstall ! | |
- | *This last command will add to the beginning of each line the needed instructions for ''apt-get'' to only download the packages: ''-d install --reinstall''. | + | *This last command will add to the beginning of each line the needed instructions for ''apt-get'' to only download the packages: ''-d install --reinstall''. To prevent the script from stopping at any question we have inserted the ''--force-yes -yy'' option. Now we just need to save the file typing the following command: |
- | + | **ZZ | |
- | + | ||
- | + | ||
*To execute the script we need first to get ROOT access. | *To execute the script we need first to get ROOT access. | ||
*Then as ROOT type the following command: | *Then as ROOT type the following command: | ||
- | + | ** # sh</home/user/package.list | |
- | + | It is done. All desired packages have been downloaded and can be listed with the following command: | |
- | + | *$ ls /var/cache/apt/archives|grep deb | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
== Further Questions == | == Further Questions == | ||
- | If you have further questions, do not hesitate to place the question here in this section, and it | + | If you have further questions, do not hesitate to contact me: [http://maemo.org/profile/view/sebas/ Sebas] or much better place the question here in this section, and I will answer it for everybody else. |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Learn more about Contributing to the wiki.