Today I got a new VPS… well great but now I need to install a bunch of new packages and libraries and helper apps. how do I remember it all? did I have python 2.6 or 2.7? not to mention which boost libs did I install? well here.s a couple of ways to deal with this issue of whats on my installed package list.
Using dkpg and apt-get
dpkg –get-selections > selections.txt Scp / email / copy to USB or copy it bit by bit, whatever floats your boat. Move to new machine. dpkg –set-selections < selections.txt
apt-get update
apt-get upgrade voilà it should be ok. but there’s a lot of clutter, like libraries and dependencies that were needed on old machine and might not be needed again. so how to find a cleaned up list? or alteast one that shows the automated installed? there’s always aptitude its simpler in syntax and better imho
Using Aptitude
aptitude search '~i'
which gives you aresult of all your packages like :
i udev – /dev/ and hotplug management daemon
i A unattended-upgrades – automatic installation of security upgrades
i upstart – event-based init daemon
i A usbutils – Linux USB utilities
i util-linux – Miscellaneous system utilities
i vim – Vi IMproved – enhanced vi editor
i vim-common – Vi IMproved – Common files
i vim-runtime – Vi IMproved – Runtime files
i wget – retrieves files from the web
This of course scrolls all the packages past your view very quickly and can be …. hard on those of us that cant read 10000 words per minute. You can always output the results to a text file, note in my example I’m using the date command to insert current date and time into the file name, you can run this with a cron job to have a snapshot of your packages at a given time.
Or if you just want a temp text file you can output to less or vim the same way.
aptitude search '~i' | less
aptitude search '~i' | vim
and if you want you can even grep / search / parse it on the fly like so
aptitude search '~i' | grep -i "X11"
i A libxpm4 – X11 pixmap library
i A libxrandr2 – X11 RandR extension library
i A libxss1 – X11 Screen Saver extension library
i A libxt6 – X11 toolkit intrinsics library
i A libxtst6 – X11 Testing — Record extension library
i A libxv1 – X11 Video extension library
i A libxxf86dga1 – X11 Direct Graphics Access extension libra
i A libxxf86vm1 – X11 XFree86 video mode extension library
i A tk – Toolkit for Tcl and X11 (default version)
i A tk8.6 – Tk toolkit for Tcl and X11 v8.6 – windowin
i A x11-common – X Window System (X.Org) infrastructure
i A x11-utils – X11 utilities
What are Ed25519 ssh keys? Ed25519 SSH keys are a type of public-key cryptography used for secure communication over a network. They are based on the Ed25519 elliptic curve algorithm, which is a variant of the elliptic curve algorithm used for digital signatures. The Ed25519 algorithm was designed to be faster and more secure than…
Today we delve into the recent instability issues plaguing Intel’s 13th and 14th generation CPUs, exploring the technical glitches, consumer impacts, and Intel’s response strategies. From elevated voltages causing irreparable damage to ongoing BIOS updates aimed at mitigation, we examine how these challenges have affected user experiences and Intel’s market reputation. Further, we discuss the broader implications for future CPU technology and how Intel plans to prevent such issues, ensuring reliability alongside innovation in the ever-evolving semiconductor landscape.
Find the config file Edit config Add the following configuration to the file: This tells Docker to listen on TCP port 2375 on IP (192.168.1.10) and on the Unix domain socket at /var/run/docker.sock. Replace 192.168.1.10 with your LAN or VPN IP. The last line in that file must NOT have a comma after it, if…
In this guide, we explore how to update a single package on Debian and Ubuntu systems using APT. Unlike `apt-get upgrade`, which updates all packages, `apt-get install –only-upgrade ` allows for updating specific packages. This command is essential for maintaining system stability without unnecessary updates. We also cover checking for updates, holding packages, and automating updates with cron jobs, providing system administrators with precise control over their package management.
Why caddy? These are just some of Caddy’s amazing features! Install Docker and Docker Compose if you haven’t already. View our docker guide here & our docker rootless guide here. Scenario: you have a new app you wrote or installed via docker called mycoolapp you want to allow the outside world to connect to this…