Juozas's Dump

A growing collection of anime, photos and any other kind of weird content.
[Tumblr|​X/Twitter|​Pillowfort|​Loforo|​Mastodon] [Random post]

 tags  journal  gallery  RSS

16.4.2022 16:01:49

Find manually installed packages that has other packages depending on it on Debian based systems

Running command below generates a list of packages that can be marked as automatically installed, as long as apt-rdepends package were already installed. It generates a script that can be used to mark all found packages as manually installed.

echo \#\!/bin/bash > mark-auto.sh; apt-mark showmanual|xargs -I{} sh -c '[ "{}" = "$(apt-rdepends -r --state-follow=Installed --state-show=Installed {} 2>/dev/null)" ] || echo apt-mark auto {}' >> mark-auto.sh

It can be modified to mark packages automatically if preferred instead of writing to a script

apt-mark showmanual|xargs -I{} sh -c '[ "{}" = "$(apt-rdepends -r --state-follow=Installed --state-show=Installed {} 2>/dev/null)" ] || apt-mark auto {}'

Before running apt-get autoremove run it with pretend mode (-s), e.g

apt-get -s autoremove --purge

Mark any package not desired to be removed with

apt-mark manual <package>

reposted by linux schaaf
16.4.2022 11:47:36

14.4.2022 20:44:42 reposted from linux

Installed Ubuntu 22.04 LTS from scratch, to be released within a week (April 21, 2022)

Ubuntu 22.04 LTS is soon to be released so I decided to do a complete reinstall. After booting into Linux Live USB first I've deleted everything from my old install except for the important stuff I needed to keep. Then I've reinstalled the base system using debootstrap and used a script I made to enter the chroot, I installed required packages there to make it boot and to be able to access network. Finally I've installed everything else I needed including graphical interface where a list of installed previously packages would help alot. Such list could be generated by running commands as shown in example below.

First generate package list files while in old system as shown below

$ apt-mark showmanual > manual_old.txt
$ dpkg-query -Wf '${Package}\n' > packages_old.txt

After reinstalling system repeat same in the new installation, only change output file names where needed.

$ apt-mark showmanual > manual.txt
$ dpkg-query -Wf '${Package}\n' > packages.txt

Finally compare package list files generated above, a list of missing packages would be stored in files as shown below

$ sort manual_old.txt > 1.txt; sort manual.txt > 2.txt; comm -23 1.txt 2.txt > missing_manual.txt
$ sort packages_old.txt > 1.txt; sort packages.txt > 2.txt; comm -23 1.txt 2.txt > missing.txt
14.4.2022 17:23:22 reposted from cats

from https://larrygreensky.loforo.com/ljqdx

5.4.2022 19:56:44

thtronger

1.4.2022 16:23:23

It’s april fools day today so have a nice picture of exhaust in place of usual stuff today instead.

27.3.2022 19:57:19


reposted by severak reactions
24.3.2022 19:57:05

https://vid.pr0gramm.com/2022/03/23/969ecdb02e9cb251.mp4

from https://vid.pr0gramm.com/2022/03/23/969ecdb02e9cb251.mp4

23.3.2022 20:30:41 reposted from demotivational

from https://tomash.loforo.com/hg7s

23.3.2022 20:08:15 reposted from trains

from https://fupduck.loforo.com/rdfza

20.3.2022 19:41:12

Very early version of minetest running on Linux

Compiled and recorded in old Ubuntu version as compilation on most recent linux versions does not work.
Recorded using simplescreenrecorder running on ubuntu 12.04 LTS.
Video has no sound, version minetest_10-10-24_16-33-41_wonderful, modified to make crosshair center correctly when resized or switched to full screen via window manager

from https://www.youtube.com/watch?v=Ah4-2mmDtq0


reposted by minetest
20.3.2022 13:57:14 reposted from dogs

19.3.2022 20:36:52

Early version of minetest, genarates only simple trees at the time


reposted by minetest
19.3.2022 19:35:25

I'm gonna leave this here

12.3.2022 16:36:21

Spam generator

$ for q in $(eval echo {1..$((2+$RANDOM%200))}); do echo $(cat </dev/urandom|tr -cd '[:lower:]'|tr -s '[:print:]'|head -c $((2+$RANDOM%32))); done|xargs

Generates a random amount of random words containing random lowercase letters (up to 200 words and 32 letters per word)


reposted by linux
 
▼ see more... ▼
 

Timeline speed: 25.71 posts per month

Just 46 pages to end...

login