sudo pacman -Syy archlinux-keyring
sudo pacman-key --populate archlinux
نویسنده: m.javidi
-
LEMP Server with Docker
version: '3.7' # Services services: # Nginx Service nginx: image: nginx:latest ports: - 80:80 volumes: - ./:/var/www/php - ./.docker/nginx/conf.d:/etc/nginx/conf.d depends_on: - php # PHP Service php: image: php-fpm build: ./.docker/php working_dir: /var/www/php volumes: - ./:/var/www/php depends_on: - mysql # MySQL Service mysql: image: mysql ports: - 3306:3306 volumes: - ./.docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf - ./.docker/mysqldata:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: toor -
Manage Package or Clean Arch after update
1. Clean package cache: $ sudo pacman -Sc 2.Remove unused packages: $ sudo pacman -Rns $(pacman -Qdtq) 3.Fully remove a Package with unrequire dependencys $ sudo pacman -Rns PAK_NAME 4. get list of package with description ``` for package in $(pacman -Qetq); do description=$(expac -S '%d' $package) echo "$package: $description" done > explicitly_installed_packages_with_descriptions.txt ``` 5. get pack with dependencys (as tree) $ for package in $(pacman -Qetq); do pactree $package; done 6. for check package and dependenci status of a package: ``` pacman -Qi PAC_NAME ``` 7. List of installed package sorted: ``` grep "installed" /var/log/pacman.log | awk '{print $1, $2, $4}' | grep -Ff <(pacman -Qqe) | sort ``` -
Resolve – Arch Pacman Error – Arch Linux Package Manager
Error : $ sudo pacman -Syu 130 (01:59.904) < 07:38:10 :: Synchronizing package databases... error: failed to update core (unable to lock database) error: failed to update extra (unable to lock database) error: failed to update community (unable to lock database) error: failed to update multilib (unable to lock database) error: failed to update archlinuxfr (unable to lock database) error: failed to synchronize all databases ------------------------------------------------------------- Solution : $ sudo rm /var/lib/pacman/db.lck -
Java script once alert
// Use function on page Without use return function once_alert() { // Create variable for check alert status in browser var alertset = localStorage.getItem('alertset') || ''; // if value not set in browser > local storage - run alert if (alertset != 'yes') { // write alert message in "txt" var txt = "Write once alert"; alert(txt); localStorage.setItem('alertset','yes'); } } //# My Edition From : //# Reference : https://stackoverflow.com/questions/24768067/display-alert-only-once