Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine the repo/PPA that a system package came from #28

Open
JonoYang opened this issue Mar 9, 2022 · 2 comments
Open

Determine the repo/PPA that a system package came from #28

JonoYang opened this issue Mar 9, 2022 · 2 comments

Comments

@JonoYang
Copy link
Contributor

JonoYang commented Mar 9, 2022

For system installed packages for Debian or Ubuntu, it would be helpful to know which repo or PPA it came from.

@pombredanne
Copy link
Contributor

May be in /var/lib/apt/lists/ but this is problematic too as it can be commonly removed: https://github.com/search?l=Dockerfile&q="rm++%2Fvar%2Flib%2Fapt%2Flists%2F*"&type=Code

@pombredanne
Copy link
Contributor

See also:

$ apt-cache policy zlib1g
zlib1g:
  Installed: 1:1.2.8.dfsg-2ubuntu4.3
  Candidate: 1:1.2.8.dfsg-2ubuntu4.3
  Version table:
 *** 1:1.2.8.dfsg-2ubuntu4.3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:1.2.8.dfsg-2ubuntu4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants