FS#19546 - {archweb} Add link to download package from some repos...

Attached to Project: Arch Linux
Opened by Tomas Mudrunka (harvie) - Thursday, 20 May 2010, 19:03 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 26 May 2010, 15:52 GMT
Task Type Feature Request
Category Web Sites
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
there should be some links to download package (from few repos like kernel.org) on website.

in short: i want pages like this: http://www.archlinux.org/packages/testing/i686/kernel26-lts/ to have direct links to packages (like many other distros do). i know that original archlinux mirror is throtled and other mirrors are not controlled by you, but kernel.org looks like great choice if i only want to download single package... (btw there can be eg. 3 mirrors to select from)

eg.: I accidentaly uninstall some package that i need to connect to internet and i want my friend to put it on my thumbdrive, so he needs to enter url of some repo to his browser and load whole apache directory index (which can be BIGGG) and then find desired package and download it.

eg2.: i wan't to download and install some package from [testing] without enabling that repo on my system (and i am probably already on that page because there's no way to know that package without enabling testing - so i've googled it). then whole booring proces with trying to overload my browser with listing of repo repeats...
This task depends upon

Closed by  Dan McGee (toofishes)
Wednesday, 26 May 2010, 15:52 GMT
Reason for closing:  Implemented
Additional comments about closing:  Will go out in the next release.
Comment by Karol Błażewicz (karol) - Thursday, 20 May 2010, 19:41 GMT
> I accidentaly uninstall some package that i need to connect to internet
You have it still on your HD so you reinstall it from the package cache.

> he needs to enter url of some repo to his browser and load whole apache directory index (which can be BIGGG)
http://arm.kh.nu/search/
Want sth from testing - select 'testing' before hitting 'Find'.


[karol@black ~]$ pacman -Sp htop
resolving dependencies...
http://mirror.selfnet.de/archlinux/extra/os/i686/htop-0.8.3-1-i686.pkg.tar.gz

You can save the urls into a file, e-mail it to your friend so (s)he can (w)get it for you.
Comment by Tomas Mudrunka (harvie) - Thursday, 20 May 2010, 21:13 GMT
karol: in fact those are not reasons for not having the link on website :-)

BTW:
> You have it still on your HD so you reinstall it from the package cache.
no i do not, because there is everything in repos and ARM and because my disk is not inflatable ;)

> http://arm.kh.nu/search/
arm is not always up to date because it's aimed to provide rollback/downgrade packages...

> You can save the urls into a file, e-mail it to your friend so (s)he can (w)get it for you.
very funny, but i can email without internet connection and typing such long url really sux... ;o)


i know that i can rub my left ear with my right hand. but WHY? websites are meaned to be user-friendly...
Comment by Karol Błażewicz (karol) - Thursday, 20 May 2010, 21:31 GMT
>>> I accidentaly uninstall some package that i need to connect to internet
>> You have it still on your HD so you reinstall it from the package cache.
> no i do not, because there is everything in repos and ARM and because my disk is not inflatable ;)
Sooo, you uninstalled sth, not bothered to check whether everything works and removed the package from the cache?
I don't want to engage in a pissing contest but I don't have that problem on my 40GB HDD - it's half empty.

> arm is not always up to date
You have testing there, so it should be up to date ... in a way.

> very funny, but i can email without internet connection
> and typing such long url really sux... ;o)
In the beginning the was SneakerNet. Put the file on a 3.5" floppy and send it via IP over Avian Carriers.

> websites are meaned to be user-friendly...
http://wiki.archlinux.org/index.php/The_Arch_Way
Comment by Tomas Mudrunka (harvie) - Thursday, 20 May 2010, 22:08 GMT
> Sooo, you uninstalled sth, not bothered to check whether everything works and removed the package from the cache?
i am deleting cache once a month. Soooo, do you know what "accidentaly" means? and this topic is irrelevant. it was just EXAMPLE.

arch way is keep-it-simple not don't-need-features...
sneakernet is not keep-it-easy and i think it's much more usefull for sharing archlinux CDs and movies than emails...

there is no pain or cost for adding such link. it costs very little space/cpu when compared to list of all files in package which is already on website...

all you need is to know filename of desired package and prefix it with repo/mirror URL which can be stored somewhere in configuration file.
do you really think that this is not compliant with keep-it-simple philosophy or you just do like flaming?
Comment by Dan McGee (toofishes) - Wednesday, 26 May 2010, 15:01 GMT
Note to self- can't do this until filename is added to the database/package model and populated so we can link correctly.

Intended approach:
* Make filename field available
* Have static download/ link off package
* When clicked, will use the above info to form an HttpRedirect() to a random (maybe?) HTTP mirror with the correct download path.
Comment by Karol Błażewicz (karol) - Wednesday, 26 May 2010, 15:20 GMT
> a random (maybe?) HTTP mirror
Running 'reflector' serverside?

Will the pathname change when the package goes f.e. from [testing] to [core]? I've read somewhere on the dev wiki that mirrors have to re-download those packages - I don't know if it's still an issue or was it fixed a long time ago.

Loading...