Home » Android » How to manage termux package like pro?


How to manage termux package like pro?

Poated on by

Categories Android Termux

Termux is a powerful Linux Terminal Emulator for Android. It allows you to run Linux Packages or Applications on Android. In this article you will learn how to manage termux package like pro.

If you are regular termux user then you know package management is important things in termux.

How to manage termux package like pro?

Termux has APT PACKAGE MANAGER support. In addition it provides a wrapper script PKG that has hidden shortcut command that most users don’t know. Let’s see what are they.

Termux pkg commands :

1. pkg autoclean

Remove all outdated packages from .deb package cache.

$ pkg autoclean
$ pkg autoc

2. pkg clean

Remove all packages from .deb package cache.

$ pkg clean
$ pkg cl 

3. pkg update

update list of available packages.

$ pkg update 
$ pkg upd

4. pkg upgrade

Upgrade all installed packages to the latest version.

$ pkg upgrade
$ pkg upg

5. pkg search

Search package by query, for example by name or description part.

$ pkg search <query>
$ pkg se <query>

6. pkg install

Install specified packages.

$ pkg install <packages>
$ pkg i <packages>

7. pkg reinstall

Reinstall specified installed packages at the latest version.

$ pkg reinstall <packages>
$ pkg rei <packages>

8. pkg show

Show basic metadata, such as dependencies.

$ pkg show <packages>
$ pkg sh <packages>

9. pkg files

Show all files installed by packages.

$ pkg files <packages>
$ pkg fi <packages>

10. pkg list-all

List all packages available in repositories.

$ pkg list-all
$ pkg list-a 

11. pkg list-installed

List installed packages.

$ pkg list-installed
$ pkg list-i

How to manage termux package like pro?

When we upgrade termux packages you use && symbol to combine upade and upgrade. And most users don’t know that they can also use ; for that.

~ $ pkg update && pkg upgrade
But we can also use
~ $ pkg upd; pkg upg

Install some package

We have seen how to use pkg command now lets install some packages.

Before installing any package we most update the repository. This is Recommand.

~ $ pkg upd; pkg upg

Install multiple Packages at once

Lets install some usefull tools like nano the text editor, python the most popular programming language, git for downloading most popular tools created by large community of programmers and hackers, busybox the multi-call binary.

~ $ pkg i nano python git busybox

19 Comments on 'How to manage termux package like pro?'

  • quadrant says:

    Thanks verү interesting bⅼog!

  • Hello there, just became alert to your blog through Google, and
    found that it’s truly informative. I am gonna watch out for brussels.
    I’ll be grateful if you continue this in future.
    Many people will be benefited from your writing. Cheers!

  • I like reading through a post that will make people think.
    Also, thank you for permitting me to comment!

  • Hi there to every , as I am genuinely keen of reading this blog’s post
    to be updated regularly. It includes fastidious stuff.

  • Interesting blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple adjustements would really make my blog shine.
    Please let me know where you got your theme. Appreciate it

  • Marvelous, what a website it is! This blog presents helpful facts to us,
    keep it up.

  • Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is valuable and all. Nevertheless think about if you added some great visuals or videos to give
    your posts more, “pop”! Your content is excellent but with
    pics and video clips, this site could certainly be one of the very best in its niche.

    Good blog!

  • Way cool! Some very valid points! I appreciate you penning this post and the rest of the
    website is also really good.

  • Thank you for the auspicious writeup. It in fact was a amusement account it.

    Look advanced to more added agreeable from you! By the
    way, how can we communicate?

  • I am truly thankful to the owner of this web site who has shared this fantastic piece of writing at at this place.

  • Pretty! This has been a really wonderful post. Many thanks for providing these details.

  • Clemmie says:

    This is very attention-grabbing, You’re a very skilled blogger.
    I have joined your feed and look ahead to looking for extra of your excellent post.
    Also, I have shared your website in my social networks

  • Efren says:

    Hi! Someone in my Facebook group shared this site with us so I came to give it a look.

    I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers!
    Wonderful blog and superb design.

  • Jeanette says:

    Hi! I just wanted to ask if you ever have any issues with hackers?
    My last blog (wordpress) was hacked and I ended up
    losing a few months of hard work due to no back up.
    Do you have any methods to protect against hackers?

  • Bernie says:

    Heya i am for the first time here. I found this board and
    I find It truly useful & it helped me out much. I hope to
    give something back and aid others like you aided me.

  • Isabelle says:

    whoah this blog is magnificent i really like reading your articles.
    Stay up the great work! You realize, many persons are looking
    round for this info, you could aid them greatly.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    Subscribe Us