You are not logged in.

#1 2015-07-14 19:42:26

MrNex
Member
Registered: 2015-07-14
Posts: 2

[SOLVED] Adding an already installed package to Pacman local database

Hey all,

I'm pretty new to arch. Really loving it so far. This is the first real problem I've ran into and I'm not sure how to proceed.
There was an issue where I had lost my /var directory recently. I quickly replaced my non-existant var folder with a copy from a backup I had made ~2 weeks ago. The only difference, which I can remember, is I have since installed the libreoffice-fresh package. After replacing the directory, pacman seemed to be working correctly again. I am now able to query all installed packages, besides libreoffice-fresh.

I tried to redownload libreoffice-fresh to see if that would work, and it had told me (for libreoffice and all dependencies) that the files already exist in the filesystem. I then tried to query the package again, with no luck.

How can I get pacman to recognize that I have this package installed on my machine?

Thank you for your time!
-MrNex

*Edit*
I should add that I followed the instructions here: https://wiki.archlinux.org/index.php/Pa … l_database However, after grepping the resulting files.list pkglist and pkglist.orig for 'libre' there were no results, so I did not proceed.

Last edited by MrNex (2015-07-14 20:11:34)

Offline

#2 2015-07-14 20:06:17

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: [SOLVED] Adding an already installed package to Pacman local database

Look at the --dbonly flag for pacman.

EDIT: And welcome to the Arch forums.

Last edited by WorMzy (2015-07-14 20:06:39)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-07-14 20:11:23

MrNex
Member
Registered: 2015-07-14
Posts: 2

Re: [SOLVED] Adding an already installed package to Pacman local database

Wow.. So simple smile
Thanks so much! Truly saved me lots of frustration.

Offline

Board footer

Powered by FluxBB