copy packages between hardware

anneranch

Active Member
Joined
Mar 16, 2019
Messages
162
Reaction score
39
Credits
1,422
I am looking at this . It is not active and I need some clarification.
I want to copy specific package,
I do SSH from "copy to " hardware and did rpm -qa > installed-software.txt

I do not know how to clone / copy installed-software.txt .

This resource does not clearly identify source / destination.

 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
6,633
Reaction score
5,396
Credits
19,688
I have read that article you linked to, and I question the use of rpm.

rpm is Redhat Package Management, as used by Redhat Enterprise Linux (RHEL), Fedora, centOS &c.

As I understand it, you are on Ubuntu 21.10 'Hirsute Hippo' on the desktop and on a Debian of some description on the Pi (you could do yourself a favour by letting us know about the Pi - I asked you elsewhere and you were not forthcoming).

If that is so, then instead of using the

rpm -qa > installed-software.txt

you might be better with something like

dpkg -l > installed-software.txt

or

apt list --installed > installed-software.txt

HTH

Wizard
 
OP
A

anneranch

Active Member
Joined
Mar 16, 2019
Messages
162
Reaction score
39
Credits
1,422
OK, as is customary - there is always a different way to accomplish same task.
Hence I run this
[email protected]:~ $ apt list --installed

and I can redirect the output to installed-software.txt file

[email protected]:~ $ apt list --installed > installed-software.txt

The installed-software.txt resides on RPi , I need it on my PC.


All is fine with a small note - I do not really need ALL what is installed on RPi.
No big issue I can always delete unneeded stuff, but it would be nice to deal only with
specific package - libbluetooth-dev in this case. (See PS )

What is still missing is
how do I copy installed-software.txt from RPi to my PC.

I am "connected" to RPi ,I used SSH , now should I use scp to get installed-software.txt from RPi to my PC ?

Or can I use clone ?


Since many functions in Linux are "flavor specific" I can see your interest in "what is the RPi OS"

So here is is
[email protected]:~ $ sudo uname -a
Linux raspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux


PS

check only libblue* install

[email protected]:~ $ apt list --installed libblue*
Listing... Done
libbluetooth-dev/testing,now 5.50-1.2~deb10u2+rpt1 armhf [installed]
libbluetooth3/testing,now 5.50-1.2~deb10u2+rpt1 armhf [installed,automatic]
[email protected]:~ $


PPS
[email protected]:~ $ apt list --installed libblue* > installed_bluetooth.txt

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

[email protected]:~ $

Should I worry ?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top