I only have main on my apt.list files.

Is there a way to look for a package in other sections? Like apt search --section contrib scrcpy?

And, since we’re at it… in other releases as well?..

  • meteokr@community.adiquaints.moe
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    From the website yes you can. It shows past and future releases of debian packages. I personally don’t actually know how to search repos without adding them to your apt lists, as I believed that can potentially create a frankendebian.

  • sin_free_for_00_days@lemmy.one
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I can do something like this:

    [\ #84]  apt-cache policy scrcpy
    scrcpy:
      Installed: (none)
      Candidate: 1.25-1
      Version table:
         1.25-1 500
            500 http://deb.debian.org/debian unstable/main amd64 Packages
    

    And it tells me that, for me, scrcpy is available from the main repository in unstable. Not sure how to find a package if it isn’t in one of your sources. I guess you could search for the package at https://packages.debian.org/index.

  • NinguémOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Thank you all. That’s what I thought - no way to make the query the way I was thinking of.

    I realize that, if i’d like to have a program search for repos not configured in sources.list, then I would have to specify the repo as well (the https:// link, I mean).

    The website half-fixes the problem, since it tells me the release the package might be in. But still doesn’t tell me whether it is in main, contrib or non-free (section?).

    Don’t worry about me creating a frankendebian by mixing releases - I destroy my system in other more subtle ways like adding appimage applications as if there was no tomorrow.