According to my limited knowlege of pacman, "pacman -Sl" will look at whatever is available in the repositories listed in the pacman.conf file from the last time it was resfreshed. This is what pacmenu uses. pacmenu then compares this to "pacman -Q" and strips out the packages that are installed.
(eliott@hermes ~)$ pacman -Sl current | grep mysql current mysql 4.1.9-1 (eliott@hermes ~)$ pacman -Q | grep mysql courier-imap-mysql 3.0.8-2 mysql 4.1.9-1
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Going to need another revision - lol.
Good thing you pointed that out. It will have to compare the package name and version also to be sure the package is installed. Not a big deal - just another piped grep to include the search for the version within the package grepped line.
Already changed and new package created.
edit - decided to make it do exact name and version checking
Okay the new verson is up there and is now installable with pacman -A so it shows up on the package list.
Fixed - alphabetically lists the packages now - slight oversight on my part as current repo packages showed up before extra repo packages and it was a bit confusing
Fixed - checking installed packages against available - does exact package comparisons now.
Let me know of anything else.
I think I will add group selection in the next update.
The link in the first post has been updated.
I went ahead and updated pacmenu to include group package install and removal.
I will upload tonight.
So the features so far are:
Install Individual Packages
Install Group packages - like "kde" or "gnome"
Remove Individual Packages
Remove Group Packages
Refresh the Database
Refresh and Update the system
I have added Pacmenu to Wiki's user contributions page:
http://wiki2.archlinux.org/index.php/Us … utionsPage
After awhile I am moving this topic to User Contributions forum.
This forum is for discussion about pacman not pacmenu.
That is cool.
Check the first post - link to new version is there.
LOL - just offering back something that I find useful myself!
I updated the link again - I put it on my personal website.
the 1.0-4 version now includes the actual deps so it can be installed right after the base install and will satisfy the deps like any other arch package.
Moderators or Site Admins - you can move this thread if you want.
Congratulations for the package, since i have Arch that i wanted a method to browse the available packages different to the webpage, with the intro of -Ql repo.
I dont know if this is posible but i was thinking if there is any chance on getting the option, while browsing the available packages (the INSTALL option in the menu), to see a brief description (the web one) of the package. This could be through pressing the D(escription) key or the I(nfo) key while the package is selected.
Just an idea, i think browsing the available packages and knowing what each does would be an awasome addition to the installer.
Again, thanks for the menu!
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
I was thinking about that - need to look at it in more depth.
I am also planning to add a function to check what files belong to what package as a menu option too.
Glad you find it useful too!
Its very nice. I think we are here getting something where both devs and users can agree without that "GUI flame".
Myself, I will replace my "pacman upgrade icon" to pacmenu. This icon was a shortcut instead of first loading a console and then type "pacman -Syu".
Can you add "refresh abs".
What's the command line starting pacmenu from a menu?... fluxbox
konsole /usr/bin/pacmenu (???)
versio 1.0-1 --> 1.0-2 = PKGBUILD/package fix
version1.0-1 --> 1.1-1 = system upgrade
konsole -e /usr/bin/pacmenu
In Eterm it looks beautiful.
http://user-contributions.org/projects/ … acmenu.jpg
abs refresh will be added in version 1.1 just for you!
Looks like I better start a changelog on my website
Ok - 1.1 is now up - added abs refresh just for you rasat!
Pacmenu is great tool and can get even better, I like it a lot...
Thanks a lot for it, Tigger.
Microshaft delenda est
No problem - glad you find it useful.
I will try to implement most things that people suggest - as long as it is possible to do.
If there is something you think would be good to have in it, just let me know.
Would be easier to scroll through the list, if the packages could be categorized as per package category at Arch's home page.
Instead of listing all, user could specify a category e.g. network or utility. Unfortunately pacman doesn't use these categories.
I contacted apeiro and he setup a package-category site. Its updated along with changes at the home page.
It needs some sed, awk and grep to make it into a template.
Shouldn't be a problem to add that as both remove and install menus.
CINSTALL and CREMOVE will be the new menu options and the categoris will be selectable under there. Hopefully I will have it done tomorrow night and tested so I can upload it to my site for you all to get.
This is getting bigger than I had expected - lol.
CINSTALL and CREMOVE have been added.
This means you can install and remove not only by alphabetical order or by group packages, but also by categories like the install CD is setup.
Updated link is in the first post or you can just go to my pacmenu page on my website:
Nice one. Next step could be checkboxes, so one can select multiple packages for (de)installation, but I guess you have already considered that.
Microshaft delenda est
Ok 1.3 is now up and here are the changes:
* - Added some information to let the user know that the packages.txt file is being retrieved and manipulated for later use. This takes a while and only downloads if the pacmenu.cat file doesn't exist in /etc. /etc/pacmenu.cat is the category list and /etc/pacmenu.pkgs lists all the packages from the packages.txt file. This gets re-fetched when you either refresh or update as well but the delay won't be a surprise anymore with the included dialog
* - Changed the initial menu to have the basics only - the INSTALL and REMOVE are submenus now that you go to from the initial menu.
Under these, there is the option to have an alphabetical menu, a category menu or a group menu.
* - Changed all the package selection menus to checklist so multiple packages or groups can be selected for install or removal.
Wow - this thing is way more feature rich than I had imagined it would be - lol. Thanks for all the suggestions folks!
BTW - tried to see if a description could be added somewhere but it is difficult as not all descriptions are a single line thus making them very difficult to parse properly.
how about "Press D to see a description" and have a popup similar to the way the kernel menuconfig works.... you could spit out the whole -Qi output
'D" - Can't do that in bash/dialog. Will see about adding another button or menu item for queries. Pressing "D" will take you to the first package that starts with a "d". Same goes for any other letter.
I'm waiting on rasat to see if the packages.txt list can be preformatted on the ftp - this will make the category sort quick on new lists.
The category menu will only show those packages that are in the category list provided by Arch so any other repo's you have that are not "Official" will not show up by category - you have to use alphabetical for that.
Having to format the category list using bash/awk/sed is painfully slow due to the size so I asked rasat if he can ask apeiro to preformat the file like the /etc/pacmenu.pkgs file.
1.4 will be coming soon - apeiro gave me a better way of parsing the packages.txt file proving you can teach an old dog new tricks - lol.
rasat also pointed out that there should be the option of downloading the file rather than just going ahead and fetching it - sorry to anyone that gets offended by this - 1.4 will ask your permission to get the file.
1.4 is ready:
Changelog for 1.4:
*-removed automatic fetching of the category template file and provided an option to update it on the main menu.
*-better parsing of the packages.txt file thanks to apeiro's little suggestion and code snippet he gave me
*-reorganized the function order in the file - no visible changes to the user, just easier to follow the code.
A big thanks to all for the suggestions so far for pacmenu and a special thanks to apeiro for his code snippet