How do I find and copy a program?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
tovian
Level 5
Level 5
Posts: 587
Joined: Sun Nov 22, 2015 1:17 pm
Location: Heart of Dixie

How do I find and copy a program?

Post by tovian »

I would like to install Mintstick Create and Mintstick Format on another distro. Is it legal to copy/use these programs elsewhere? (I assume it is since Linux software is generally distributable and free)

I'd guess one first needs to know in which repository these programs reside, then do some sort of ppa add to make them available for installation somewhere else. Is this the proper way? How does one find out which ppa to add?

Or am I completely off base?

T-I-A
“I think that this situation absolutely requires a really futile and stupid gesture be done on somebody's part"
"We're just the guys to do it”

Animal House
User avatar
Pierre
Level 20
Level 20
Posts: 10731
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How do I find and copy a program?

Post by Pierre »

as a general rule, an program, unlike your /data - - can't just be copied to somewhere else.
:o
the main issue is any dependencies of that program, that may not get copied as well.

so what you need to do, is to get hod of the original installation file, for that program,
that may be still on the current machine and copy that instead.
- or get hold of that installation program from another source, such as from sourceforge..
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
Sir Charles
Level 7
Level 7
Posts: 1895
Joined: Thu Jan 04, 2018 1:00 pm

Re: How do I find and copy a program?

Post by Sir Charles »

You could download a .deb file for a package by running:sudo apt download Package_Name replacing the Package_Name with the actual package's name.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.
User avatar
tovian
Level 5
Level 5
Posts: 587
Joined: Sun Nov 22, 2015 1:17 pm
Location: Heart of Dixie

Re: How do I find and copy a program?

Post by tovian »

"Copy" may have been a poor choice of words but the concept is essentially the same. I want to install (not copy) the programs (ie. apt-get install Mintstick). That process should point to a package with all the dependencies noted/included. These programs had to be installed on my system somehow... can I not use that same intelligence to install them onto another system?
“I think that this situation absolutely requires a really futile and stupid gesture be done on somebody's part"
"We're just the guys to do it”

Animal House
User avatar
tovian
Level 5
Level 5
Posts: 587
Joined: Sun Nov 22, 2015 1:17 pm
Location: Heart of Dixie

Re: How do I find and copy a program?

Post by tovian »

Marziano wrote:
Thu Jun 07, 2018 7:53 am
You could download a .deb file for a package by running:sudo apt download Package_Name replacing the Package_Name with the actual package's name.
I think this is more like what I'm looking for. How does one find out what the package name is?
“I think that this situation absolutely requires a really futile and stupid gesture be done on somebody's part"
"We're just the guys to do it”

Animal House
User avatar
Sir Charles
Level 7
Level 7
Posts: 1895
Joined: Thu Jan 04, 2018 1:00 pm

Re: How do I find and copy a program?

Post by Sir Charles »

In Xfce, I just right-click on the launcher for the application and choose "edit application". Oftentimes, the name of the application to search for in Synaptic for example, is the one in the command line without extra parameters. For example for the case in hand, it is "mintstick", so running:

Code: Select all

sudo apt download mintstick
will download a .deb file to your current directory.

Code: Select all

~ $ sudo apt download mintstick

--snip--

The package mintstick is already installed. Its deb file was downloaded in the current directory.
But if it will get installed properly in another distro for the reason of dependencies, as mentioned above by Pierre, is another question.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.
User avatar
shawnhcorey
Level 4
Level 4
Posts: 205
Joined: Thu Jun 17, 2010 11:23 am
Location: The Great White North
Contact:

Re: How do I find and copy a program?

Post by shawnhcorey »

What distro? Or more important, what distro is the distro based on? If it's Debian, then you can use apt on the command line or the Software Manager or the Synaptic Package Manager. Other distros have other software managers.
Don't stop where the ink does.
User avatar
Sir Charles
Level 7
Level 7
Posts: 1895
Joined: Thu Jan 04, 2018 1:00 pm

Re: How do I find and copy a program?

Post by Sir Charles »

Posting fromKubuntu 18.04
I just ran a simulation for installingmintstick_1.3.7_all.deb which I had previously downloaded in LM 19 beta (Xfce) and here is what I got:

Code: Select all

$ sudo apt install ./mintstick_1.3.7_all.deb --simulate

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mintstick' instead of './mintstick_1.3.7_all.deb'
The following additional packages will be installed:
  exfat-fuse exfat-utils gawk gir1.2-udisks-2.0 gir1.2-xapp-1.0 gist hddtemp inxi libgnomekbd-common
  libgnomekbd8 libsigsegv2 libxapp1 libxklavier16 lm-sensors mesa-utils net-tools python-parted ruby-json
  xapps-common
Suggested packages:
  gawk-doc fancontrol read-edid i2c-tools
The following NEW packages will be installed:
  exfat-fuse exfat-utils gawk gir1.2-udisks-2.0 gir1.2-xapp-1.0 gist hddtemp inxi libgnomekbd-common
  libgnomekbd8 libsigsegv2 libxapp1 libxklavier16 lm-sensors mesa-utils mintstick net-tools python-parted
  ruby-json xapps-common
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Inst libsigsegv2 (2.12-1 Ubuntu:18.04/bionic [amd64])
Conf libsigsegv2 (2.12-1 Ubuntu:18.04/bionic [amd64])
Inst gawk (1:4.1.4+dfsg-1build1 Ubuntu:18.04/bionic [amd64])
Inst exfat-fuse (1.2.8-1 Ubuntu:18.04/bionic [amd64])
Inst exfat-utils (1.2.8-1 Ubuntu:18.04/bionic [amd64])
Inst gir1.2-udisks-2.0 (2.7.6-3 Ubuntu:18.04/bionic [amd64])
Inst libgnomekbd-common (3.26.0-3 Ubuntu:18.04/bionic [all])
Inst libxklavier16 (5.4-3 Ubuntu:18.04/bionic [amd64])
Inst libgnomekbd8 (3.26.0-3 Ubuntu:18.04/bionic [amd64])
Inst xapps-common (1.0.4-2fakesync1 Ubuntu:18.04/bionic [all])
Inst libxapp1 (1.0.4-2fakesync1 Ubuntu:18.04/bionic [amd64])
Inst gir1.2-xapp-1.0 (1.0.4-2fakesync1 Ubuntu:18.04/bionic [amd64])
Inst ruby-json (2.1.0+dfsg-2 Ubuntu:18.04/bionic [amd64])
Inst gist (4.6.1-1 Ubuntu:18.04/bionic [all])
Inst python-parted (3.11.1-1ubuntu2 Ubuntu:18.04/bionic [amd64])
Inst mintstick (1.3.7 local-deb [all])
Inst net-tools (1.60+git20161116.90da8a0-1ubuntu1 Ubuntu:18.04/bionic [amd64])
Inst hddtemp (0.3-beta15-53 Ubuntu:18.04/bionic [amd64])
Inst inxi (2.3.56-1 Ubuntu:18.04/bionic [all])
Inst lm-sensors (1:3.4.0-4 Ubuntu:18.04/bionic [amd64])
Inst mesa-utils (8.4.0-1 Ubuntu:18.04/bionic [amd64])
Conf gawk (1:4.1.4+dfsg-1build1 Ubuntu:18.04/bionic [amd64])
Conf exfat-fuse (1.2.8-1 Ubuntu:18.04/bionic [amd64])
Conf exfat-utils (1.2.8-1 Ubuntu:18.04/bionic [amd64])
Conf gir1.2-udisks-2.0 (2.7.6-3 Ubuntu:18.04/bionic [amd64])
Conf libgnomekbd-common (3.26.0-3 Ubuntu:18.04/bionic [all])
Conf libxklavier16 (5.4-3 Ubuntu:18.04/bionic [amd64])
Conf libgnomekbd8 (3.26.0-3 Ubuntu:18.04/bionic [amd64])
Conf xapps-common (1.0.4-2fakesync1 Ubuntu:18.04/bionic [all])
Conf libxapp1 (1.0.4-2fakesync1 Ubuntu:18.04/bionic [amd64])
Conf gir1.2-xapp-1.0 (1.0.4-2fakesync1 Ubuntu:18.04/bionic [amd64])
Conf ruby-json (2.1.0+dfsg-2 Ubuntu:18.04/bionic [amd64])
Conf gist (4.6.1-1 Ubuntu:18.04/bionic [all])
Conf python-parted (3.11.1-1ubuntu2 Ubuntu:18.04/bionic [amd64])
Conf mintstick (1.3.7 local-deb [all])
Conf net-tools (1.60+git20161116.90da8a0-1ubuntu1 Ubuntu:18.04/bionic [amd64])
Conf hddtemp (0.3-beta15-53 Ubuntu:18.04/bionic [amd64])
Conf inxi (2.3.56-1 Ubuntu:18.04/bionic [all])
Conf lm-sensors (1:3.4.0-4 Ubuntu:18.04/bionic [amd64])
Conf mesa-utils (8.4.0-1 Ubuntu:18.04/bionic [amd64])
It seems that the system needed to install some additional packages, but it didn't complain about unmet dependencies. I didn't go through the installation proper, so I couldn't say if it will run well in this system.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.
User avatar
Lord Boltar
Level 5
Level 5
Posts: 711
Joined: Mon Jan 09, 2017 7:24 pm
Location: Sunny Florida

Re: How do I find and copy a program?

Post by Lord Boltar »

IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members

The only way for evil to prosper is for good men to do nothing
User avatar
jimallyn
Level 18
Level 18
Posts: 8955
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: How do I find and copy a program?

Post by jimallyn »

Install dpkg-repack. Then, from the man page:
dpkg-repack creates a .deb file out of a Debian package that has already been
installed on your system.

If any changes have been made to the package while it was unpacked (ie, conf‐
files files in /etc modified), the new package will inherit the changes. (There
are exceptions to this, including changes to configuration files that are not
conffiles, including those managed by ucf.)

This utility can make it easy to copy packages from one computer to another, or
to recreate packages that are installed on your system, but no longer available
elsewhere.
There you go.
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
User avatar
tovian
Level 5
Level 5
Posts: 587
Joined: Sun Nov 22, 2015 1:17 pm
Location: Heart of Dixie

Re: How do I find and copy a program?

Post by tovian »

shawnhcorey wrote:
Thu Jun 07, 2018 8:26 am
What distro? Or more important, what distro is the distro based on?
Right now I'm trying to work with Kubuntu which is Debian-based. However, I would like to try installing on Manjaro once I have it running. Manjaro is Arch-based.
Any idea how a program - packaged to install on a Debian-based system - could be installed on a NON-Debian-based system?

I'm in way over my head, but this is how one learns. ***
.
.
.
*** I'm already starting to beat the Heck out of a bunch of "Linux terms" that I've heard but have no clue what they mean :roll: :lol:
“I think that this situation absolutely requires a really futile and stupid gesture be done on somebody's part"
"We're just the guys to do it”

Animal House
User avatar
tovian
Level 5
Level 5
Posts: 587
Joined: Sun Nov 22, 2015 1:17 pm
Location: Heart of Dixie

Re: How do I find and copy a program?

Post by tovian »

Apparently I'm doing something everything wrong

jimallyn wrote:
Thu Jun 07, 2018 1:27 pm
Install dpkg-repack. Then...
Already had latest version; Package created perfectly; Failed to install with "Dependencies unmet"

Using the tortured and twisted logic between my ears I have also tried EVERY other method noted above. I've had no joy with any of them - mostly due to unmet dependencies.

I think the bottom line is I just don't know enough at this point to run these processes correctly. Also, I may have a corrupted Kubuntu system. I'll try reloading that as well.
“I think that this situation absolutely requires a really futile and stupid gesture be done on somebody's part"
"We're just the guys to do it”

Animal House
User avatar
Pierre
Level 20
Level 20
Posts: 10731
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How do I find and copy a program?

Post by Pierre »

jimallyn wrote:
Thu Jun 07, 2018 1:27 pm
Install dpkg-repack. Then, from the man page:

There you go.
rather neat too - - reminds me of a similar programs that ran on win-98,
and would also package up, some Target Program, so that it could then be moved to another system.
8)
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
jimallyn
Level 18
Level 18
Posts: 8955
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: How do I find and copy a program?

Post by jimallyn »

tovian wrote:
Thu Jun 07, 2018 6:36 pm
However, I would like to try installing on Manjaro once I have it running. Manjaro is Arch-based.
Hmm, not sure how you would do that. You could compile from source (almost certainly readily available, probably on github). You'd have to figure out what all the dependencies are, and might have to compile some of those from source. On second thought, I think all (or most) of the Mint programs are written in Python, and, at least in theory, should run just about anywhere that has a Python interpreter.
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
Post Reply

Return to “Newbie Questions”