backing up applications
Tofloor
poster avatar
hadikamel
deepin
2014-12-15 01:57
Author
Hi ,
i am new in Deepin.
it is cool and biautifull...

now i am installing apps on pc..
but i want to install deepin on another system too.
but the other system is not connected to the internet..
is there any way that we could install apps on a system by deepin store and copy them to another one offline? (like backup & restore)

BEST REGARDS
Reply Favorite View the author
All Replies
186******98
deepin
2014-12-15 03:29
#1
Hi

We will develop deepin cloud service in 2015 to provide app backup & restore feature.

Thanks for use Deepin!

-- Deepin developer.
Reply View the author
hadikamel
deepin
2014-12-15 07:27
#2
Hi

We will develop deepin cloud service in 2015 to provide app backup & restore feature.

Thanks for use Deepin!

-- Deepin developer.

thanks for your reply..
but cloud is online way..
is there any tip for do it offline?

BEST REGARDS
Reply View the author
stephenjy
deepin
2014-12-15 07:47
#3
[quote]Hi

We will develop deepin cloud service in 2015 to provide app backup & restore feature.

Thanks for use Deepin!

-- Deepin developer.

thanks for your reply..
but cloud is online way..
is there any tip for do it offline?

BEST REGARDS[/quote]

There is no out-of-box support for "backing up all installed apps packages" Deepin AppStore currently.

However you can get deb files of all installed packages with this command:
  1. dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only
Copy the Code

Note that this command will download a lot of files (including packages shipped with os default installation). I have no idea of how to just download package debs that are installed after os installation.

Deb files are saved at /var/cache/apt/archives, you can then copy these files to the offline host, save at the same place. You can then run dpkg -i *.deb to install all these packages, if you don't need to install all but some of, read on.

Make sure the two hosts have the same /etc/apt/sources.list, then copy /var/lib/apt/lists/* to the offline host's same place, it's equivalent to running apt-get update on the offline host, then you can use Deepin AppStore to install apps (of course, just those has been installed on the online host are available).
Reply View the author
hadikamel
deepin
2014-12-16 05:49
#4
[quote][quote]Hi

We will develop deepin cloud service in 2015 to provide app backup & restore feature.

Thanks for use Deepin!

-- Deepin developer.

thanks for your reply..
but cloud is online way..
is there any tip for do it offline?

BEST REGARDS[/quote]

There is no out-of-box support for "backing up all installed apps packages" Deepin AppStore currently.

However you can get deb files of all installed packages with this command:
  1. dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only
Copy the Code

Note that this command will download a lot of files (including packages shipped with os default installation). I have no idea of how to just download package debs that are installed after os installation.

Deb files are saved at /var/cache/apt/archives, you can then copy these files to the offline host, save at the same place. You can then run dpkg -i *.deb to install all these packages, if you don't need to install all but some of, read on.

Make sure the two hosts have the same /etc/apt/sources.list, then copy /var/lib/apt/lists/* to the offline host's same place, it's equivalent to running apt-get update on the offline host, then you can use Deepin AppStore to install apps (of course, just those has been installed on the online host are available).[/quote]

thanks!
great help..
can i run deb files that i was copied from /var/cache/apt/archives directly and install?

BEST REGARDS
Reply View the author
stephenjy
deepin
2014-12-16 17:08
#5
thanks!
great help..
can i run deb files that i was copied from /var/cache/apt/archives directly and install?

BEST REGARDS

Sure, you can double click or run "dpkg -i xx.deb" to install the deb file.

Note that, since most deb files have dependencies, you will have to figure out the dependency, and install all the packages. For example, firstly, run "dpkg -i" against a deb file, it will prompt you that there are unsatisfied dependencies, see the sample output:
  1. $ sudo dpkg -i apache2-mpm-worker_2.4.7-1ubuntu4.1_amd64.deb
  2. Selecting previously unselected package apache2-mpm-worker.
  3. (Reading database ... 251531 files and directories currently installed.)
  4. Preparing to unpack apache2-mpm-worker_2.4.7-1ubuntu4.1_amd64.deb ...
  5. Unpacking apache2-mpm-worker (2.4.7-1ubuntu4.1) ...
  6. dpkg: dependency problems prevent configuration of apache2-mpm-worker:
  7. apache2-mpm-worker depends on apache2 (= 2.4.7-1ubuntu4.1); however:
  8.   Package apache2 is not installed.
  9. dpkg: error processing package apache2-mpm-worker (--install):
  10. dependency problems - leaving unconfigured
  11. Errors were encountered while processing:
  12. apache2-mpm-worker
Copy the Code

It shows that you will have to find deb file for apache2, in my case, it is apache2_2.4.7-1ubuntu4.1_amd64.deb, then run dpkg -i again:
  1. $ sudo dpkg -i apache2-mpm-worker_2.4.7-1ubuntu4.1_amd64.deb apache2_2.4.7-1ubuntu4.1_amd64.deb
Copy the Code

You may have to repeat this process a couple of times.
Reply View the author
hadikamel
deepin
2014-12-18 09:21
#6
thanks again.

i was test the command, but there is this error:
  1. hifriend@BAMBOO:~$ dpkg -i audacious_3.4.3-1_i386.deb
  2. dpkg: error: requested operation requires superuser privilege
Copy the Code
and then i was enter "su" and my main pass, but t:
  1. hifriend@BAMBOO:~$ su
  2. Password: *******
  3. su: Authentication failure
Copy the Code

i was not changed root pass or admin..
what is the error ?
Reply View the author
不避风云
deepin
2014-12-18 15:43
#7
I copy all deb in /var/cache/apt/archives , then run sudo apt-get install *** , it will run directly and the depend will be installed automatic.
Reply View the author
stephenjy
deepin
2014-12-18 17:19
#8
i was not changed root pass or admin..
what is the error ?

You should use sudo instead of su. You don't have root password (and the root user does not have a password set by default). For example:
  1. sudo dpkg -i xxx.deb
Copy the Code
Reply View the author
hadikamel
deepin
2014-12-19 07:30
#9
[quote]
i was not changed root pass or admin..
what is the error ?

You should use sudo instead of su. You don't have root password (and the root user does not have a password set by default). For example:
  1. sudo dpkg -i xxx.deb
Copy the Code
[/quote]

thanks for your good guide dear stephenjy
Reply View the author
brophy
deepin
2014-12-19 20:28
#10
it is said that deepin group is developing the offine update solutions, maybe  you can update offine directly in the future .
Reply View the author
hadikamel
deepin
2014-12-20 04:43
#11
it is said that deepin group is developing the offine update solutions, maybe  you can update offine directly in the future .
we are waiting for that!
thank you again!
Reply View the author
不避风云
deepin
2015-06-27 06:39
#12
https://bbs.deepin.org/post/26170
thanks for your reply..
but cloud is online way..
is there any tip for do it offline?

But, the code you supplied
  1. dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only
Copy the Code

run with error.

bash: 未预期的符号 `|' 附近有语法错误
in english, bash unexpected sign, there is grammar error near `|'
how can solvoe it? thank you.
Reply View the author
xliang9550
deepin
2015-06-27 07:12
#13
论坛改版之后,老帖子里的一些符号显示不正常了。
官方的解释是普通用户没有使用代码的权限……
Reply View the author
damoyanyu
deepin
2015-06-27 18:48
#14
看不懂,都是英文,而且有道也翻译不了
Reply View the author