You are not logged in.
Clearly, a local database is kept when you run apt-get update. Where is it stored? If I install a third-party program of some sort, such as Google Chrome, and it adds a repository for itself, is that kept in the same place? And if I later remove this program, what happens to that extra database? Does it get removed automatically? Or do I have to manually delete it somehow?
Offline
Clearly, you've missed the memo: Linux is not Win-OS!
In Devuan, like all Debian-based distro's, you add a repository to the /etc/apt/sources file. Then add the key to that repo via apt/dpkg, refresh apt via
apt-get update
then install any package from that repo via the normal method
apt-get install <package-name>
Removing it is as simple as
apt-get purge <package-name>
The purge option tells apt to completely remove any traces of the package, including config files and whatever else it installed/used, from your system.
If you want a GUI to help you out, Synaptic takes your hand, just explore the menu for the correct function.
You do NOT manipulate a database manually, like some Win-OS users seem to have taught themselves
Offline
@Micronaut: yes. Google leaves its repository hook-in (i.e. a file) in /etc/apt/sources.list.d/ and you have to remove it by hand. man sources.list has more details.
EDIT: Google might also have left a PGP key (i.e. another file) in /etc/apt/trusted.gpg.d/ and you might want to remove that as well. man apt-get is a fairly good starting point about that.
Offline
Yes, I'm aware of /etc/apt/sources.list.d already. What I'm not certain about is the data files downloaded from those repositories. Deleting the text file under apt is surely not going to remove the data from that source? Or does Apt do that automatically?
Offline
I think there is a file in /var/cache/apt/pkgcache.bin, it's 124.2MiB on my box... but I'm not too sure if it's all the packages available or just the installed packages.
pic from 1993, new guitar day.
Offline
Yes apt-get update does that. The downloaded "packages" files are kept in /var/lib/apt/lists
Offline
/var/lib/apt/lists = description of all available packages
/var/lib/dpkg/status = description of all the packages currently installed
/var/cache/apt/ = has two binary files, pkgcache.bin and srcpkgcache.bin, if you delete these it will restore synaptic to a state where it's only showing installed packages instead of all available when next you open it.
When you update and/or install something new, some of these files will change.
/var/lib/dpkg/status is handy as you can (carefully) alter some things. I deleted a dependency in a program that demanded I install the Gnome icon set even though it truly didn't need them.
Ahh the beauty of Linux, still allowing me to flip the middle finger at Gnome after all these years.
https://sourceforge.net/projects/vuu-do/ New 1.09 isos uploaded 11/27/2024
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate
Offline
In Devuan, like all Debian-based distro's, you add a repository to the /etc/apt/sources file.
Some .deb installers, Vivaldi for an example, automatically adds its repository during the installation.
Offline