Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #258387
| From | "Alexander V. Makartsev" <avbetev@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How to download source package using only console? |
| Date | 2023-05-15 21:50 +0200 |
| Message-ID | <GvMmJ-98EG-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <Gvc9z-8MrR-3@gated-at.bofh.it> <Gvg3v-8OHq-5@gated-at.bofh.it> <Gvuzv-8Xpy-5@gated-at.bofh.it> <GvyWt-90Cu-5@gated-at.bofh.it> <GvDCN-93sg-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 15.05.2023 15:19, Vincent Lefevre wrote: > On 2023-05-15 10:25:45 +0500, Alexander V. Makartsev wrote: > >> I see. That explains why I can request source package >> "golang-github-xenolf-lego/testing" directly and get the right one. >> So, in my case, I won't be able to reliably get a source package(-s) from >> "testing" if I don't add "deb" part of "testing" to "sources.list", which >> could be a different can of worms... >> Is this something for me to just be aware of and leave it as is now, or is >> there more elegant solution? > Well, if you don't want the "deb" part, you need to provide the > name of the source package directly to "apt source". If you do that > frequently, you can write a script. There are 2 solutions: > * A remote request, e.g. with rmadison. > * Something based of "apt cache show". From that, you can get the > source package, then call "apt source" with the source package. > But note that this is only a heuristic; if the name of the source > package has changed from stable to testing, this won't work. > > Note that adding the "deb" part shouldn't be much an issue (except > noise, e.g. with "apt cache show", which would give output for both > stable and testing). If you want to make sure that a package from > testing won't be installed by mistake (by apt), I suppose that you > can use apt preferences with a negative priority for testing to > prevent such an installation: > > Package: * > Pin: release a=testing > Pin-Priority: -1 > > (not tried). See the apt_preferences(5) man page for details. It looks like adding the "deb" part with apt pinning is the best option. Even with pinning in effect, packages from "testing" still could be installed, but only if they were manually requested. Now the command "$ apt source lego/testing" is working properly. Thanks for suggestions, Vincent. -- With kindest regards, Alexander. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄⠀⠀⠀⠀
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
How to download source package using only console? "Alexander V. Makartsev" <avbetev@gmail.com> - 2023-05-13 21:20 +0200
Re: How to download source package using only console? Vincent Lefevre <vincent@vinc17.net> - 2023-05-14 07:10 +0200
Re: How to download source package using only console? "Alexander V. Makartsev" <avbetev@gmail.com> - 2023-05-14 11:20 +0200
Re: How to download source package using only console? Greg Wooledge <greg@wooledge.org> - 2023-05-14 15:20 +0200
Re: How to download source package using only console? Vincent Lefevre <vincent@vinc17.net> - 2023-05-15 02:50 +0200
Re: How to download source package using only console? "Alexander V. Makartsev" <avbetev@gmail.com> - 2023-05-15 07:30 +0200
Re: How to download source package using only console? Vincent Lefevre <vincent@vinc17.net> - 2023-05-15 12:30 +0200
Re: How to download source package using only console? "Alexander V. Makartsev" <avbetev@gmail.com> - 2023-05-15 21:50 +0200
csiph-web