this post was submitted on 28 May 2024
14 points (88.9% liked)

Linux

48245 readers
511 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

upgrading xubuntu to 24.04, fresh install, but I'd like to copy the output of both dpkg -l and history to a usb stick.

About history: will it copy all commands I executed on all tabs? I work with several tabs simultaneously.

ETA: thank you for all your input, problem has been solved.

you are viewing a single comment's thread
view the rest of the comments
[–] joyjoy@lemm.ee 10 points 5 months ago (1 children)

First, use lsblk to list your block devices. Note the path containing your usb device. e.g. /dev/sdb1

Next mount the device to an existing folder or create a new one.

mkdir -p /mnt/thumbstick
mount /dev/sdb1 /mnt/thumbstick

Now you can pipe the dpkg output to the usb device.

dpkg -l > /mnt/thumbstick/packages.txt

Finally, you can unmount the stick to ensure everything is flushed. (optional)

umount /mnt/thumbstick
[–] merompetehla@lemmy.ml 1 points 5 months ago

thanks, this worked