copy packages between hardware

Status
Not open for further replies.

anneranch

Active Member
Joined
Mar 16, 2019
Messages
223
Reaction score
43
Credits
2,078
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.

 


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
 
OK, as is customary - there is always a different way to accomplish same task.
Hence I run this
pi@raspberrypi:~ $ apt list --installed

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

pi@raspberrypi:~ $ 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
pi@raspberrypi:~ $ 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

pi@raspberrypi:~ $ 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]
pi@raspberrypi:~ $


PPS
pi@raspberrypi:~ $ apt list --installed libblue* > installed_bluetooth.txt

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

pi@raspberrypi:~ $

Should I worry ?
 
Status
Not open for further replies.

Members online


Top