Is it possible to copy a specific application that is installed in another machine to my machine. That means i want to install that same application in my machine. The .deb for the specific package is not available in other system?
Asked
Active
Viewed 51 times
0
-
1Yes, it is possible to copy an application (or any other files) from one machine to another, but I presume this is not really what you're asking. What are you trying to achieve? Do the two machines run different version of Ubuntu? When you say the .deb is not available on one system, does that mean it is not available through any of the software repositories, or that you don't have an internet connection to download it? – Tobias Jun 23 '16 at 09:03
-
These are same versions of ubuntu(12.04). and i have network access. in both pcs, but there is no .deb package on other machine's /var/cache/apt/archives/ – Rapsis Jun 23 '16 at 09:08
-
Related https://askubuntu.com/questions/592551/how-to-create-a-deb-file-from-installed-package – user.dz Jun 23 '16 at 11:18
1 Answers
2
Yes, you can use dpkg-repack
for this, which will put an already installed application back together into a .deb file, which you can then copy to the other computer and install there.
To install it, use
sudo apt-get install dpkg-repack
and to use it:
sudo dpkg-repack <packagename(s)>
Which will give you a .deb file (or multiple files, if you repacked multiple packages) in the current directory, which you can then install on another computer. Note that this will not back up any configuration or personal user data created by the application, you have to do that yourself.
But: It's probably better to find the original source of the software / package, such as an additional repository or PPA, instead of using this method.

Jonas Czech
- 4,017
-
The .deb file for specific package is created after the execution of repack command. But after trying to install it ends up with errors. – Rapsis Jun 27 '16 at 04:49
-
-
I tried installing .deb with dpkg. Tried installing the dependencies also but it's not working. The application is not showing up in dash. – Rapsis Jun 27 '16 at 08:39
-
What do you see when you launch the application from the terminal ? Maybe you need to logout / login again for the dash to pick it up. @JubinM – Jonas Czech Jun 27 '16 at 08:40
-
I tried logging out. Even while typing the application name in terminal it's not showing up. – Rapsis Jun 27 '16 at 08:45