list all mirrored packages by name and version
Google appears to be incapable of providing an answer to this, apparently only able to show what's already been installed, or names absent package versions, or multi-page, multi-line complete package descriptions, while man pages like apt-cache seem to have masked any evidence such options exist. In openSUSE, the following produces desired results for a specific package named "kernel-default":
Code:
# zypper se -sx kernel-default | grep -v src Note: se is zypper shorthand for search. I don't type all that in SUSE. I have it and more aliased to zypse (substring search) and zypsex (exact match). |
if I understand well it is apt-cache policy (?)
|
apt-cache madison
Quote:
|
I knew about madison, but never found any way to get it to work for substrings, so that the exact package name doesn't need to be known ahead of time, or accurately typed:
Code:
# inxi -S Code:
# aptitude search linux-ima Code:
# inxi -S |
apt-cache search accepts regexes
|
Quote:
Using --list (-l) option instead of --show (-W) gives tabular output like in your first post, however with --show one can use --showformat (-f) to change the fields and delimiters used. |
Quote:
Code:
# apt-cache search linux* | wc -l Code:
# apt-cache madison linux* Quote:
Code:
# dpkg-query --show linux-image |
what about apt policy linux-image* (or similar?)
|
Quote:
Quote:
|
Quote:
Code:
# ls -lgG /usr/bin/apt* /usr/sbin/dpkg* /usr/bin/dpkg* I've tried man apt-cache multiple times. If the answer I need is in it, its well disguised, which leads back to the underlying question, is apt-cache appropriate to task, and if not, which binary is, or, does one even exist? |
did you try apt policy already? without cache
|
Quote:
Code:
# apt policy fileco* Code:
# apt policy llvm |
Quote:
|
You seem to be jumping all over the place. Do you have a real problem to solve, or are you simply Apt bashing?
If all you're trying to do is say "look at how Apt sucks" then, yes, it sucks in a lot of ways. (So does every package manager I've used.) If you can explain what you want in terms of other package managers, then Arch maintain a package management rosetta stone that may help. If you want to know which versions of packages are available online, //tracker.debian.org/pkg/PACKAGE-NAME gives you that - e.g. //tracker.debian.org/pkg/firefox-esr or //tracker.debian.org/pkg/linux-image-amd64 - yes knowing the package name first is still required. I doubt a complete version list is obtainable through Apt because there's no reason for Debian Stable to care about (e.g.) v6.7.12+1 of linux-signed-amd64 because that version will never be in the Stable repositories. However, once you know a package what you can do is read the download location (through apt info or the first icon in the "versioned links" section of the tracker page) and then browse to the relevant directory in the shared pool, i.e: //deb.debian.org/debian/pool/main/f/firefox-esr/ which for Firefox contains a lot of crap, but can be filtered on the .dsc files to see which versions are there. For non-Debian repositories if they have followed Debian's lead with browsable directories then you can do the same. If they block it, as Brian Havard's repo appears to, then it doesn't help - but then how would any potential Apt command get at that information, if the repo owner has blocked it...? |
Quote:
Quote:
Code:
> cat /usr/local/bin/zypse Code:
> cat /usr/local/bin/zypsei # -i option: is installed Code:
> zypsei gstr puls pipew wirep alsa Code:
> zypse ire-too Code:
alias Dq='echo dpkg-query -l ; dpkg-query -l | sort | grep ' # output includes version |
All times are GMT -5. The time now is 07:41 AM. |