Giter Site home page Giter Site logo

[feature suggestion] pkg should preserve packages that it deletes temporaily when they are not currently available in the binary package database about pkg HOT 4 OPEN

yurivict avatar yurivict commented on July 17, 2024
[feature suggestion] pkg should preserve packages that it deletes temporaily when they are not currently available in the binary package database

from pkg.

Comments (4)

bapt avatar bapt commented on July 17, 2024

pkg already does that the packages are in the cache directory so one can manually install it via pkg install /var/cache/pkg/chromium

from pkg.

bdrewery avatar bdrewery commented on July 17, 2024

This would require saving all of the old dependencies as well. At some level, package or shlib files. This behavior has bitten me plenty. People have asked for similar fix to Poudriere but the same problems exist with dependencies. Smarter fat packages could solve this but I don't see that happening.

from pkg.

yurivict avatar yurivict commented on July 17, 2024

@bapt

Packages are places into /var/cache/pkg when they are originally installed with pkg, and not when they are installed by building from a port.
This cache was cleaned at some point for unrelated reasons, and the file wasn't there.

So I suggest that /var/cache/pkg/{name}.xxx is created in the case when:
(1) it needs to be removed
(2) it isn't in /var/cache/pkg
(3) it isn't in the binary package DB

from pkg.

yurivict avatar yurivict commented on July 17, 2024

True, some dependency might be different, etc., but in the current specific case I reinstalled chromium by creating a binary package from the file system backup from 2-3 days ago and it works fine. In case when that backup wouldn't have been available - I wouldn't be able to use chromium for many hours until it would rebuild.

I believe this is a real problem for regular users that an important package can just disappear like this.

from pkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.