Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt vs pkg #2151

Closed
lukeeey opened this issue Feb 16, 2018 · 9 comments
Closed

apt vs pkg #2151

lukeeey opened this issue Feb 16, 2018 · 9 comments

Comments

@lukeeey
Copy link

lukeeey commented Feb 16, 2018

I personally don't think it is a good idea to promote pkg over the standard apt. I know that pkg is a wrapper for apt to help make it easier to use, but new users who have never used the Linux terminal before might see pkg as being the norm and they won't even know about apt, so if they move on to actual Linux, they are gonna have a problem.

@Systemad
Copy link
Contributor

You can use apt instead of pkg if you want. As far as I'm aware, it does the same thing.

@tomty89
Copy link
Contributor

tomty89 commented Feb 16, 2018

Well it's not like people who "plan on moving from Termux to actual Linux" cannot stick to apt alone. Also apt is not like a universal standard anyway, there are yum/dnf in the redhat world and the lovely pacman from Arch, only to name a few other package managers.

@tomty89
Copy link
Contributor

tomty89 commented Feb 16, 2018

Also pkg is a real short shell script that covers only a subset of switches in apt, you can't even stick to it if you want to be manipulative enough to your Termux installation.

@lukeeey lukeeey closed this as completed Feb 16, 2018
@GitToTheHub
Copy link

I was wondering, what's the difference about "pkg" and "apt" and was coming to this post (I'm new to Linux). I don't understand why pkg is the standard in Termux because it's only a wrapper for apt?

I was confused when i tried to uninstall a package with following:

$ pkg uninstall vim-python
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
diffutils gdbm libcrypt libffi libsqlite libutil
ncurses-ui-libs python vim-runtime
Use 'apt autoremove' to remove them.
..

It says "use 'apt autoremove'" to remove unused packages and i was trying like something:
$ pkg uninstall vim-python apt autoremove
And
$ pkg uninstall vim-python autoremove
And
$ pkg autoremove
Nothing helped until i tried simply 'apt autoremove' and it worked.

Maybe it would be really better to use apt as default :)

@ghost
Copy link

ghost commented Apr 24, 2019

what's the difference about "pkg" and "apt"

pkg is a wrapper around apt.
We added it because people frequently forget to run "apt update" before installing packages.

@GitToTheHub
Copy link

Ok and "apt update" updates "apt" itself i presume?

@ghost
Copy link

ghost commented Apr 24, 2019

update (apt-get(8))
update is used to download package information from all configured sources. Other
commands operate on this data to e.g. perform package upgrades or search in and
display details about all packages available for installation.

@GitToTheHub
Copy link

Ah ok, so "apt update" does not upgrade any software, it's only to gather informations about the packages and there dependencies. Thank you :)

@Ro-del-sys
Copy link

In my first time i tried to type the cmatrix command i know it's the most simple command but it took to me so much time bcz i used pkg he didn't give nothing as outcome but when i use apt-get he worked

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants