It depends. I’ve done it a few different ways:
Edit: spelling
To manage packages on the terminal, I personally like to use aptitude which has a nice visual interface to find, install, and remove packages. It also lets you resolve conflicts interactively. If you do not want a separate tool, you can use apt-cache search
to search for new packages.
As is typical with Linux, there are multiple ways to do it. I found an article that outlines a few alternatives.
I switched to self hosted Piwigo after Flickr started threatening to delete my photos a while back.
It had an extension that let me import all my photos from Flickr. Not sure if that still works after they changed hands.
It’s very easy to maintain; just click the update button in the Web UI. And it comes with a bunch of extensions.
You haven’t lived until you’ve installed Slackware from floppy disks and compiled the necessary network drivers into the kernel by hand. Good times, but never again.
No defense is perfect, of course. To prevent client-side code from running, you can always install NoScript.
Privacy is an endless treadmill, though; they are always finding new ways to get around protection. You may get a good level or privacy with the right tools, but it will also be super inconvenient.