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 · 8 comments

Comments

@lukeeey
Copy link

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

This comment has been minimized.

Copy link
Contributor

commented Feb 16, 2018

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

@tomty89

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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 Feb 16, 2018

@GitToTheHub

This comment has been minimized.

Copy link

commented Apr 24, 2019

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 :)

@xeffyr

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link

commented Apr 24, 2019

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

@xeffyr

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link

commented Apr 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.