The officially official Devuan Forum!

You are not logged in.

#1 2024-09-15 21:09:42

Micronaut
Member
Registered: 2019-07-04
Posts: 228  

Where are repository data files stored?

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

#2 2024-09-15 21:26:33

Dutch_Master
Member
Registered: 2018-05-31
Posts: 286  

Re: Where are repository data files stored?

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 roll

Offline

#3 2024-09-15 21:43:10

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,253  

Re: Where are repository data files stored?

@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.

Online

#4 2024-09-16 13:18:00

Micronaut
Member
Registered: 2019-07-04
Posts: 228  

Re: Where are repository data files stored?

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

#5 2024-09-16 21:54:13

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 644  

Re: Where are repository data files stored?

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

#6 2024-09-16 22:38:51

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,253  

Re: Where are repository data files stored?

Yes apt-get update does that. The downloaded "packages" files are kept in /var/lib/apt/lists

Online

#7 2024-11-18 22:20:51

greenjeans
Member
Registered: 2017-04-07
Posts: 542  
Website

Re: Where are repository data files stored?

/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. wink


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#8 2024-11-18 22:55:40

Ron
Member
Registered: 2018-04-22
Posts: 526  

Re: Where are repository data files stored?

Dutch_Master wrote:

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

Board footer