Author Topic: Pacli, shell script for pacman and yourt  (Read 21392 times)

0 Members and 1 Guest are viewing this topic.

Offline tropper

  • Vollwertiges Mitglied
  • ***
  • Posts: 130
  • Sorry my bad english
    • Manjaro Geek
  • Branch: testing
  • Desktop: ManjaroPek
  • GPU Card: SIS
  • GPU driver: SIS
  • Kernel: 3.18
  • Skill: Advanced
Pacli, shell script for pacman and yourt
« on: 18. March 2015, 19:13:09 »
Hello everyone;

I have the idea of replacing the Octopi by a shell script, freeing the QT library. Here is the script for testing.

Any suggestions or ideas are welcome. I wait for the feedback

Download here: https://github.com/Manjaro-Pek/pacli/archive/master.zip
« Last Edit: 24. April 2015, 06:54:52 by tropper »

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #1 on: 18. March 2015, 19:50:47 »
although i do not use pekwm, i think this is a great idea.

i am looking over the code and will do a pull request soon.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #2 on: 18. March 2015, 20:28:46 »
ok. i made some changes. please accept the pull request.


here are the reasons for it:

- i would never use -Rsc, because it is dangerous. it will delete ALL dependencies of a package (even if those dependencies are needed by other packages). using -Rsn is much safer (it will delete dependencies only, when they are not needed by other packages).
please read the man page of pacman (section "REMOVE OPTIONS"):
Code: [Select]
man -H pacman

- i moved the "Non-Official Packages" option to the AUR section, because it will list all the installed AUR packages. this makes much more sense. i also renamed it.


edit: if you really want to use pacli, i recommend to have a way to see, whether updates are available (the functionality of octopi-notifier). i have a notifier in my conky (https://forum.manjaro.org/index.php?topic=2991.msg157968#msg157968), but there are also separate little programs, which integrate into an icon in your panel.
« Last Edit: 18. March 2015, 22:56:46 by excalibur1234 »
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #3 on: 18. March 2015, 22:41:34 »
Hello everyone;

I have the idea of replacing the Octopi by a shell script, freeing the QT library. Here is the script for testing.

Any suggestions or ideas are welcome. I wait for the feedback

Download here: https://github.com/pekman1/pacli/archive/master.zip

I have not looked at the script but what is the purpose of it?

I'm asking because pacman & yaourt does everything I need, I usually install PkgBrowser which makes it a bit easier to browse through things.

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #4 on: 18. March 2015, 22:52:28 »
i cannot speak for tropper, but i think he wants a really light manjaropek. this means no gtk3 (pamac) and qt (octopi) dependencies. therefore, he is looking for a beginner-friendly and light-weight way to search, install, remove, and manager packages.
pacli is nice for that.

alternatively, he could try "pacmanxg4-bin". it is a package manager with neither gtk nor qt dependencies. it is not as simple (at least it does not look simple), but it has a GUI.


i use pacman and yaourt via CLI, too. i do not have a package manager installed. but it might be a lot to ask from beginners to become instantly familiar with pacman, yaourt, and the terminal.
« Last Edit: 18. March 2015, 23:00:12 by excalibur1234 »
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline simgin

  • Held Mitglied
  • *****
  • Posts: 774
  • Branch: All.
  • Desktop: XFCE+Alpine Linux, Mate+Fedora, Ubuntu Server + Mate and NoX+LinuxBBQ
  • GPU Card: GeForce 8600M & GT 555M 2GB
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #5 on: 19. March 2015, 02:13:18 »
Hmm, wait a minute, there is a serious limit on how minimal a system can be and still be "user friendly".  I want it a lot smaller, but thats just me and some others. I can see where Tropper is heading, and it will not be user friendly in that direction...I think, but I don't mind as long as it is thought through and things are minimal and stable. :)
The rest is learning, thank you Tropper for making it more minimal :)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #6 on: 01. April 2015, 17:15:09 »
i tried to improve it even more and i have created another pull request.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline tropper

  • Vollwertiges Mitglied
  • ***
  • Posts: 130
  • Sorry my bad english
    • Manjaro Geek
  • Branch: testing
  • Desktop: ManjaroPek
  • GPU Card: SIS
  • GPU driver: SIS
  • Kernel: 3.18
  • Skill: Advanced
Re: Pacli, shell script for pacman and yourt
« Reply #7 on: 03. April 2015, 10:08:49 »
Hello, I am very grateful for the collaboration. I'm reviewing all the code and Manjaro Pek settings, and then all of it will be in git.

Once bound by collaborations excalibur1234

Offline fassil

  • Support Team
  • ****
  • Posts: 709
  • Branch: stable/unstable
  • Desktop: E19/E20
  • GPU driver: free
  • Kernel: Linux314 & 318
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #8 on: 03. April 2015, 10:57:20 »
'LLo,

Yep, i'm interesting but the link in your first post -> not found  :o
"Are you enlightened ?"

Offline tropper

  • Vollwertiges Mitglied
  • ***
  • Posts: 130
  • Sorry my bad english
    • Manjaro Geek
  • Branch: testing
  • Desktop: ManjaroPek
  • GPU Card: SIS
  • GPU driver: SIS
  • Kernel: 3.18
  • Skill: Advanced
Re: Pacli, shell script for pacman and yourt
« Reply #9 on: 03. April 2015, 14:36:21 »
'LLo,

Yep, i'm interesting but the link in your first post -> not found  :o


thanks for reporting.

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #10 on: 03. April 2015, 20:20:24 »
it looks like tropper moved the git repository here: https://github.com/Manjaro-Pek/pacli


if you want to try it, use this command to download it:
Code: [Select]
git clone https://github.com/Manjaro-Pek/pacli.git
(you need to have "git" installed).

then, you need to execute the "pacli" file inside the downloaded folder. sometimes it works by double clicking it, sometimes you need to execute it in your terminal:
change into the "pacli" directory:
Code: [Select]
cd pacli
then, execute the "pacli" file:
Code: [Select]
./pacli
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline tropper

  • Vollwertiges Mitglied
  • ***
  • Posts: 130
  • Sorry my bad english
    • Manjaro Geek
  • Branch: testing
  • Desktop: ManjaroPek
  • GPU Card: SIS
  • GPU driver: SIS
  • Kernel: 3.18
  • Skill: Advanced
Re: Pacli, shell script for pacman and yourt
« Reply #11 on: 24. April 2015, 06:57:06 »
Hey all,

New update for pacli,  any improvements implemented.

Download: https://github.com/Manjaro-Pek/pacli/archive/master.zip

I wish to register a big thanks to spylinux and excalibur1234


« Last Edit: 24. April 2015, 07:04:59 by tropper »

Offline simgin

  • Held Mitglied
  • *****
  • Posts: 774
  • Branch: All.
  • Desktop: XFCE+Alpine Linux, Mate+Fedora, Ubuntu Server + Mate and NoX+LinuxBBQ
  • GPU Card: GeForce 8600M & GT 555M 2GB
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #12 on: 24. April 2015, 13:42:04 »
^ sweet, nice work tropper :)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #13 on: 24. April 2015, 14:09:29 »
nice visual improvements. you have also included the "fixit" command.
i like it.

i have corrected some small things. nothing big.
pull request is pending...
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Pacli, shell script for pacman and yourt
« Reply #14 on: 24. April 2015, 14:25:57 »
just for documentation purposes: here are the commands executed by the pacli script:


1 Update System
Code: [Select]
sudo pacman -Syyuu
2 Optimize Mirrors
Code: [Select]
sudo pacman-mirrors -g
sudo pacman -Syy

3 Optimize Database
Code: [Select]
sudo pacman-optimize
4 Clean Package Cache
Code: [Select]
paccache -ruk0
paccache -rk3

5 Search Package
Code: [Select]
pacman -Ss
6 Package Information
Code: [Select]
pacman -Si
7 Install Package
Code: [Select]
sudo pacman -S
8 Detail Installed Packages
Code: [Select]
pacman -Qi
9 Remove Package
Code: [Select]
sudo pacman -R
10 Remove Package + Deps
Code: [Select]
sudo pacman -Rsn
11 List Orphan Packages
Code: [Select]
pacman -Qqdt
12 Remove Orphan Packages
Code: [Select]
sudo pacman -Rns $(pacman -Qqdt)
13 Local List
Code: [Select]
pacman -Ql
14 Dependencies Tree
Code: [Select]
pactree
15 Installed Packages
Code: [Select]
pacman -Qet
16 Fix Errors
Code: [Select]
sudo rm -f /var/lib/pacman/db.lck && sudo pacman-mirrors -g && sudo pacman -Syy

17 Update AUR
Code: [Select]
yaourt -Syyuua
18 Search on AUR
Code: [Select]
yaourt -Ss
19 Install from AUR
Code: [Select]
yaourt -S
20 Remove from AUR
Code: [Select]
yaourt -R
21 Remove from AUR + Deps
Code: [Select]
yaourt -Rsn
22 Installed from AUR
Code: [Select]
pacman -Qem
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki