Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sh-5.0# pwd
- /tmp
- sh-5.0# tar -xzf rtl8821ce-dkms-git.tar.gz
- sh-5.0# ls
- rtl8821ce-dkms-git rtl8821ce-dkms-git.tar.gz
- sh-5.0# cd rtl8821ce-dkms-git
- sh-5.0# ls
- PKGBUILD
- sh-5.0# ls
- PKGBUILD
- sh-5.0# pacm
- pacman pacman-conf pacman-db-upgrade pacman-key pacman-mirrors pacmd
- sh-5.0# pacman -R rtl8821ce-dkms-git
- checking dependencies...
- Packages (1) rtl8821ce-dkms-git-1.0.5.r76.g7c4f827-1
- Total Removed Size: 30.16 MiB
- :: Do you want to remove these packages? [Y/n] y
- :: Running pre-transaction hooks...
- (1/1) Remove DKMS modules
- ==> dkms remove rtl8821ce/1.0.5.r76.g7c4f827 -k 5.3.12-1-MANJARO
- :: Processing package changes...
- (1/1) removing rtl8821ce-dkms-git [####################################################################] 100%
- :: Running post-transaction hooks...
- (1/1) Arming ConditionNeedsUpdate...
- sh-5.0#
- sh-5.0# dkms status
- sh-5.0# dkms remove module/version --all
- Error! There are no instances of module: module
- version located in the DKMS tree.
- sh-5.0# ls
- PKGBUILD
- sh-5.0# makepkg --help
- makepkg (pacman) 5.2.1
- Make packages compatible for use with pacman
- Usage: /usr/bin/makepkg [options]
- Options:
- -A, --ignorearch Ignore incomplete arch field in PKGBUILD
- -c, --clean Clean up work files after build
- -C, --cleanbuild Remove $srcdir/ dir before building the package
- -d, --nodeps Skip all dependency checks
- -e, --noextract Do not extract source files (use existing $srcdir/ dir)
- -f, --force Overwrite existing package
- -g, --geninteg Generate integrity checks for source files
- -h, --help Show this help message and exit
- -i, --install Install package after successful build
- -L, --log Log package build process
- -m, --nocolor Disable colorized output messages
- -o, --nobuild Download and extract files only
- -p <file> Use an alternate build script (instead of 'PKGBUILD')
- -r, --rmdeps Remove installed dependencies after a successful build
- -R, --repackage Repackage contents of the package without rebuilding
- -s, --syncdeps Install missing dependencies with pacman
- -S, --source Generate a source-only tarball without downloaded sources
- -V, --version Show version information and exit
- --allsource Generate a source-only tarball including downloaded sources
- --check Run the check() function in the PKGBUILD
- --config <file> Use an alternate config file (instead of '/etc/makepkg.conf')
- --holdver Do not update VCS sources
- --key <key> Specify a key to use for gpg signing instead of the default
- --noarchive Do not create package archive
- --nocheck Do not run the check() function in the PKGBUILD
- --noprepare Do not run the prepare() function in the PKGBUILD
- --nosign Do not create a signature for the package
- --packagelist Only list package filepaths that would be produced
- --printsrcinfo Print the generated SRCINFO and exit
- --sign Sign the resulting package with gpg
- --skipchecksums Do not verify checksums of the source files
- --skipinteg Do not perform any verification checks on source files
- --skippgpcheck Do not verify source files with PGP signatures
- --verifysource Download source files (if needed) and perform integrity checks
- These options can be passed to pacman:
- --asdeps Install packages as non-explicitly installed
- --needed Do not reinstall the targets that are already up to date
- --noconfirm Do not ask for confirmation when resolving dependencies
- --noprogressbar Do not show a progress bar when downloading files
- If -p is not specified, makepkg will look for 'PKGBUILD'
- sh-5.0# makepkg -s
- ==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
- catastrophic damage to your system.
- sh-5.0# su manjaro
- su: user manjaro does not exist
- sh-5.0# su artem
- [artem@manjaro rtl8821ce-dkms-git]$ ls
- PKGBUILD
- [artem@manjaro rtl8821ce-dkms-git]$ makepkg -s
- ==> ERROR: You do not have write permission for the directory $BUILDDIR (/tmp/rtl8821ce-dkms-git).
- Aborting...
- [artem@manjaro rtl8821ce-dkms-git]$ exit
- exit
- sh-5.0# chmod go+rwX .
- sh-5.0# su artem
- [artem@manjaro rtl8821ce-dkms-git]$ makepkg -s
- ==> Making package: rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (Sun Dec 8 02:57:55 2019)
- ==> Checking runtime dependencies...
- ==> Checking buildtime dependencies...
- ==> Retrieving sources...
- -> Cloning rtl8821ce git repo...
- Cloning into bare repository '/tmp/rtl8821ce-dkms-git/rtl8821ce'...
- fatal: unable to access 'https://github.com/tomaspinho/rtl8821ce.git/': Could not resolve host: github.com
- ==> ERROR: Failure while downloading rtl8821ce git repo
- Aborting...
- [artem@manjaro rtl8821ce-dkms-git]$ ls
- PKGBUILD src
- [artem@manjaro rtl8821ce-dkms-git]$ less PKGBUILD
- [artem@manjaro rtl8821ce-dkms-git]$ wget https://github.com/tomaspinho/rtl8821ce.git
- --2019-12-08 03:02:22-- https://github.com/tomaspinho/rtl8821ce.git
- Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
- Resolving github.com (github.com)... failed: Name or service not known.
- wget: unable to resolve host address 'github.com'
- [artem@manjaro rtl8821ce-dkms-git]$ less PKGBUILD
- [artem@manjaro rtl8821ce-dkms-git]$ makepkg -s
- ==> Making package: rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (Sun Dec 8 03:06:04 2019)
- ==> Checking runtime dependencies...
- ==> Checking buildtime dependencies...
- ==> Retrieving sources...
- -> Updating rtl8821ce git repo...
- Fetching origin
- fatal: unable to access 'https://github.com/tomaspinho/rtl8821ce.git/': Could not resolve host: github.com
- error: Could not fetch origin
- ==> WARNING: Failure while updating rtl8821ce git repo
- ==> Validating source files with sha256sums...
- rtl8821ce ... Skipped
- ==> Extracting sources...
- -> Creating working copy of rtl8821ce git repo...
- Cloning into 'rtl8821ce'...
- done.
- ==> Starting pkgver()...
- ==> WARNING: /tmp/rtl8821ce-dkms-git/PKGBUILD is not writeable -- pkgver will not be updated
- ==> Entering fakeroot environment...
- ==> Starting package()...
- ==> Tidying install...
- -> Removing libtool files...
- -> Purging unwanted files...
- -> Removing static library files...
- -> Stripping unneeded symbols from binaries and libraries...
- -> Compressing man and info pages...
- ==> Checking for packaging issues...
- ==> Creating package "rtl8821ce-dkms-git"...
- -> Generating .PKGINFO file...
- -> Generating .BUILDINFO file...
- -> Generating .MTREE file...
- -> Compressing package...
- ==> Leaving fakeroot environment.
- ==> Finished making: rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (Sun Dec 8 03:06:25 2019)
- [artem@manjaro rtl8821ce-dkms-git]$ ls
- PKGBUILD pkg rtl8821ce rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz src
- [artem@manjaro rtl8821ce-dkms-git]$ exit
- exit
- sh-5.0# ls
- PKGBUILD pkg rtl8821ce rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz src
- sh-5.0# dkms install rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
- Error! No valid dkms.conf in dkms_source_tree or dkms_binaries_only.
- rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz is not a valid DKMS tarball.
- sh-5.0# pacman -s rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
- error: invalid option '-s'
- sh-5.0# pacman -S rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
- error: target not found: rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
- warning: 'rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
- sh-5.0# pacman -U rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
- loading packages...
- resolving dependencies...
- looking for conflicting packages...
- Packages (1) rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1
- Total Installed Size: 30.16 MiB
- :: Proceed with installation? [Y/n] y
- (1/1) checking keys in keyring [####################################################################] 100%
- (1/1) checking package integrity [####################################################################] 100%
- (1/1) loading package files [####################################################################] 100%
- (1/1) checking for file conflicts [####################################################################] 100%
- (1/1) checking available disk space [####################################################################] 100%
- :: Processing package changes...
- (1/1) installing rtl8821ce-dkms-git [####################################################################] 100%
- :: Running post-transaction hooks...
- (1/2) Install DKMS modules
- ==> dkms install rtl8821ce/1.0.5.r36.gca4abd8 -k 5.3.12-1-MANJARO
- (2/2) Arming ConditionNeedsUpdate...
- sh-5.0#
- [manjaro@manjaro mnt]$ sudo mv /tmp/rtl8821ce-dkms-git.tar.gz /mnt/tmp
- [manjaro@manjaro mnt]$ cd /mnt/tmp
- [manjaro@manjaro tmp]$ ls
- rtl8821ce-dkms-git rtl8821ce-dkms-git.tar.gz
- [manjaro@manjaro tmp]$ cd rtl8821ce-dkms-git/
- [manjaro@manjaro rtl8821ce-dkms-git]$ ls
- PKGBUILD src
- [manjaro@manjaro rtl8821ce-dkms-git]$ ls src
- [manjaro@manjaro rtl8821ce-dkms-git]$ git clone git+https://github.com/tomaspinho/rtl8821ce.git
- Клонирование в «rtl8821ce»…
- fatal: unable to find remote helper for 'git+https'
- [manjaro@manjaro rtl8821ce-dkms-git]$ git clone https://github.com/tomaspinho/rtl8821ce.git
- Клонирование в «rtl8821ce»…
- remote: Enumerating objects: 22, done.
- remote: Counting objects: 100% (22/22), done.
- remote: Compressing objects: 100% (20/20), done.
- remote: Total 1495 (delta 5), reused 7 (delta 2), pack-reused 1473
- Получение объектов: 100% (1495/1495), 5.72 MiB | 1.07 MiB/s, готово.
- Определение изменений: 100% (812/812), готово.
- [manjaro@manjaro rtl8821ce-dkms-git]$ ls
- PKGBUILD rtl8821ce src
- [manjaro@manjaro rtl8821ce-dkms-git]$ ls rtl8821ce/
- Dockerfile Makefile README.md core dkms-remove.sh get_sources.sh halmac.mk include platform runwpa
- Kconfig PKGBUILD clean dkms-install.sh dkms.conf hal ifcfg-wlan0 os_dep rtl8821c.mk wlan0dhcp
- [manjaro@manjaro rtl8821ce-dkms-git]$ man pacman
- [manjaro@manjaro rtl8821ce-dkms-git]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement