Пакет: attr
- Версия
- 2.5.2
- Релиз
- 1.niceos5
- Архитектура
- x86_64
- Хэш GOST
- 3babfa48a01d6c86965e97485368aba216bc57b2c852b5d016c78d1dd73aba21
- Хэш MD5
- 8ad42bc765ff55d31d1ce70ca7dd6aa5
- Хэш SHA256
- 0e63635cd82f01dc6003d549c9d65fd92fd0ad5320589366a5384d8ca01ea4bd
- Лицензия
- GPLv2+
- Дата сборки
- 12 мая 2025 г.
- Размер
- 154,478 МиБ
- Совместимые ОС
- rpm файл:
- attr-2.5.2-1.niceos5.x86_64.rpm
Подпакеты
Имя | Краткое описание |
---|---|
attr-devel | Описание отсутствует |
lib32-attr | 32-битные библиотеки для attr |
Зависимости
Имя | Тип | Версия |
---|---|---|
config(attr) | runtime | - |
libattr.so.1()(64bit) | runtime | - |
libattr.so.1(ATTR_1.0)(64bit) | runtime | - |
libattr.so.1(ATTR_1.2)(64bit) | runtime | - |
libc.so.6()(64bit) | runtime | - |
libc.so.6(GLIBC_2.2.5)(64bit) | runtime | - |
libc.so.6(GLIBC_2.3)(64bit) | runtime | - |
libc.so.6(GLIBC_2.3.4)(64bit) | runtime | - |
libc.so.6(GLIBC_2.33)(64bit) | runtime | - |
libc.so.6(GLIBC_2.34)(64bit) | runtime | - |
libc.so.6(GLIBC_2.4)(64bit) | runtime | - |
rtld(GNU_HASH) | runtime | - |
Граф зависимостей
История изменений
Дата | Автор | Сообщение |
---|---|---|
31 мар. 2025 г. | Stanislav Belikov <sbelikov@ncsgp.ru> | Первая сборка для attr |
Файлы пакета
-
- /etc/xattr.conf 681 Б
-
-
-
- /usr/bin/attr 16,734 КиБ
- /usr/bin/getfattr 26,828 КиБ
- /usr/bin/setfattr 22,164 КиБ
-
-
- /usr/lib/libattr.so.1 19 Б
- /usr/lib/libattr.so.1.1.2502 30,312 КиБ
-
-
-
-
-
- /usr/share/locale/cs/LC_MESSAGES/attr.mo 3,77 КиБ
-
-
-
-
- /usr/share/locale/de/LC_MESSAGES/attr.mo 4,546 КиБ
-
-
-
-
- /usr/share/locale/en@boldquot/LC_MESSAGES/attr.mo 6,068 КиБ
-
-
-
-
- /usr/share/locale/en@quot/LC_MESSAGES/attr.mo 5,971 КиБ
-
-
-
-
- /usr/share/locale/es/LC_MESSAGES/attr.mo 3,602 КиБ
-
-
-
-
- /usr/share/locale/fr/LC_MESSAGES/attr.mo 4,945 КиБ
-
-
-
-
- /usr/share/locale/gl/LC_MESSAGES/attr.mo 3,58 КиБ
-
-
-
-
- /usr/share/locale/ka/LC_MESSAGES/attr.mo 7,458 КиБ
-
-
-
-
- /usr/share/locale/nl/LC_MESSAGES/attr.mo 4,623 КиБ
-
-
-
-
- /usr/share/locale/pl/LC_MESSAGES/attr.mo 4,697 КиБ
-
-
-
-
- /usr/share/locale/sv/LC_MESSAGES/attr.mo 2,255 КиБ
-
-
-
-
-
- /usr/share/man/man1/attr.1.gz 2,509 КиБ
- /usr/share/man/man1/getfattr.1.gz 1,965 КиБ
- /usr/share/man/man1/setfattr.1.gz 1,767 КиБ
-
-
-
-
Документация (man-страницы)
SETFATTR(1) File Utilities SETFATTR(1) NAME setfattr - установить расширенные атрибуты объектов файловой системы SYNOPSIS setfattr [-h] -n name [-v value] pathname... setfattr [-h] -x name pathname... setfattr [-h] --restore=file DESCRIPTION Команда setfattr связывает новое значение с именем расширенного атрибута для каждого указанного файла. OPTIONS -n name, --name=name Указывает имя расширенного атрибута для установки. -v value, --value=value Указывает новое значение расширенного атрибута. Доступны три метода кодирования значения. Если строка заключена в двойные кавычки, её содержимое трактуется как текст. В этом случае обратные слеши и двойные кавычки имеют специальное значение и должны экранироваться с помощью предшествующего обратного слеша. Любые управляющие символы можно закодировать как обратный слеш, за которым следуют три цифры в восьмеричной системе, соответствующие коду ASCII. Если строка начинается с 0x или 0X, она выражает шестнадцатеричное число. Если строка начинается с 0s или 0S, ожидается кодировка base64. Также см. опцию --encoding команды getfattr(1). -x name, --remove=name Полностью удаляет указанный расширенный атрибут. -h, --no-dereference Не следовать симлинкам. Если pathname является символьной ссылкой, она не будет отслежена, а вместо этого будет модифицирован сам inode. --restore=file Восстанавливает расширенные атрибуты из файла. Файл должен быть в формате, генерируемом командой getfattr с опцией --dump. Если в качестве имени файла указан дефис (-), setfattr читает из стандартного ввода. --raw Не декодировать значение атрибута. Можно использовать для установки значений, полученных с помощью getfattr --only-values. --version Вывести версию setfattr и выйти. --help Вывести справку по опциям командной строки. -- Конец опций командной строки. Все оставшиеся параметры интерпретируются как имена файлов, даже если они начинаются с символа дефиса. EXAMPLES Добавить расширенный атрибут в пространство имён пользователя: $ setfattr -n user.foo -v bar file.txt Чтобы добавить md5sum файла в качестве расширенного атрибута: # setfattr -n trusted.md5sum -v d41d8cd98f00b204e00998ecf8427e file.txt AUTHOR Andreas Gruenbacher, <andreas.gruenbacher@gmail.com> и команда разработки SGI XFS, <linux-xfs@oss.sgi.com>. Пожалуйста, отправляйте отчёты об ошибках или комментарии по адресу <https://savannah.nongnu.org/bugs/?group=attr> или <acl-devel@nongnu.org>. SEE ALSO getfattr(1), xattr(7) Дек 2001 Расширенные атрибуты SETFATTR(1)
SETFATTR(1) File Utilities SETFATTR(1) NAME setfattr - set extended attributes of filesystem objects SYNOPSIS setfattr [-h] -n name [-v value] pathname... setfattr [-h] -x name pathname... setfattr [-h] --restore=file DESCRIPTION The setfattr command associates a new value with an extended attribute name for each specified file. OPTIONS -n name, --name=name Specifies the name of the extended attribute to set. -v value, --value=value Specifies the new value of the extended attribute. There are three methods available for encoding the value. If the given string is enclosed in double quotes, the inner string is treated as text. In that case, backslashes and double quotes have special meanings and need to be escaped by a preceding backslash. Any control characters can be encoded as a backslash followed by three digits as its ASCII code in octal. If the given string begins with 0x or 0X, it ex‐ presses a hexadecimal number. If the given string begins with 0s or 0S, base64 encoding is expected. Also see the --encoding option of getfattr(1). -x name, --remove=name Remove the named extended attribute entirely. -h, --no-dereference Do not follow symlinks. If pathname is a symbolic link, it is not followed, but is instead itself the inode being modified. --restore=file Restores extended attributes from file. The file must be in the format generated by the getfattr command with the --dump option. If a dash (-) is given as the file name, setfattr reads from stan‐ dard input. --raw Do not decode the attribute value. Can be used to set values ob‐ tained with getfattr --only-values. --version Print the version of setfattr and exit. --help Print help explaining the command line options. -- End of command line options. All remaining parameters are inter‐ preted as file names, even if they start with a dash character. EXAMPLES Add extended attribute to user namespace: $ setfattr -n user.foo -v bar file.txt To add md5sum of the file as an extended attribute: # setfattr -n trusted.md5sum -v d41d8cd98f00b204e00998ecf8427e file.txt AUTHOR Andreas Gruenbacher, <andreas.gruenbacher@gmail.com> and the SGI XFS development team, <linux-xfs@oss.sgi.com>. Please send your bug reports or comments to <https://savan‐ nah.nongnu.org/bugs/?group=attr> or <acl-devel@nongnu.org>. SEE ALSO getfattr(1), xattr(7) Dec 2001 Extended Attributes SETFATTR(1)
ATTR(1) API совместимости XFS ATTR(1) NAME attr - расширенные атрибуты объектов файловой системы XFS SYNOPSIS attr [ -LRSq ] -s attrname [ -V attrvalue ] pathname attr [ -LRSq ] -g attrname pathname attr [ -LRSq ] -r attrname pathname attr [ -LRSq ] -l pathname OVERVIEW Расширенные атрибуты реализуют возможность для пользователя прикреплять пары имя:значение к объектам в файловой системе XFS. В этом документе описывается команда attr, которая в основном совместима с командой IRIX с таким же именем. Она предназначена специально для пользователей файловой системы XFS - для манипуляций с расширенными атрибутами, независимыми от файловой системы, обратитесь к документации getfattr(1) и setfattr(1). Расширенные атрибуты могут использоваться для хранения мета-информации о файле. Например, "character-set=kanji" может указывать браузеру документов использовать набор символов Kanji при отображении этого документа, а "thumbnail=..." может предоставлять уменьшенное разрешение обзора высококачественного графического изображения. В файловой системе XFS имена могут быть до 256 байт в длину, завершаясь первым нулевым байтом. Предполагается, что они будут именами в читаемом формате ASCII (или другой кодировке). Значения могут быть до 64КБ произвольных двоичных данных. Атрибуты могут быть прикреплены ко всем типам inode XFS: обычным файлам, каталогам, символическим ссылкам, узлам устройств и т.д. XFS использует 2 дискретных пространства имен атрибутов, связанных с каждым объектом файловой системы. Это пространства root и user. Пространство root доступно только суперпользователю и только при указании флага в вызове функции. Другие пользователи не увидят и не смогут изменить атрибуты в пространстве root. Пространство user защищено стандартным механизмом прав доступа к файлам, поэтому владелец файла может решать, кто может видеть и/или изменять значение атрибутов для любого конкретного файла. DESCRIPTION Утилита attr позволяет манипулировать расширенными атрибутами, связанными с объектами файловой системы, из оболочки сценариев. Существуют четыре основные операции, которые может выполнять attr: GET Опция -g attrname указывает attr искать указанный объект и выводить (в stdout) значение, связанное с этим именем атрибута. С флагом -q stdout будет содержать ровно и только значение атрибута, подходящее для прямого хранения в файл или обработки через пайп. LIST Опция -l указывает attr перечислить имена всех атрибутов, связанных с объектом, и количество байт в значении каждого из них. С флагом -q stdout будет простым списком только имен атрибутов, по одному на строку, подходящим для ввода в сценарий. REMOVE Опция -r attrname указывает attr удалить атрибут с данным именем из объекта, если атрибут существует. При успешном завершении вывода нет. SET/CREATE Опция -s attrname указывает attr установить именованный атрибут объекта в значение, прочитанное из stdin. Если атрибут с этим именем уже существует, его значение будет заменено на это. Если атрибут с этим именем не существует, он будет создан с этим значением. С флагом -V attrvalue атрибут будет установлен с значением attrvalue, и stdin не будет прочитан. С флагом -q stdout не будет использован. Без флага -q будет выведено сообщение, показывающее имя атрибута и полное значение. При указании опции -L и если указанный объект является символической ссылкой, работать с атрибутами объекта, на который ссылается символическая ссылка. Без этой опции работать с атрибутами самой символической ссылки. При указании опции -R и если процесс имеет соответствующие привилегии, работать в пространстве имен атрибутов root, а не в пространстве USER. Опция -S похожа, за исключением того, что она указывает использование пространства имен атрибутов security. При указании опции -q attr будет стараться молчать. Он будет выводить сообщения об ошибках (в stderr), но не будет печатать сообщения о состоянии (в stdout). NOTES Стандартные программы обмена/архивации файлов tar(1) и cpio(1) не будут архивировать или восстанавливать расширенные атрибуты, в то время как программа xfsdump(8) будет. CAVEATS Опция списка, присутствующая в версии этой команды для IRIX, не поддерживается. getfattr предоставляет механизм для получения всех имен атрибутов. AUTHOR Andreas Gruenbacher, <andreas.gruenbacher@gmail.com> и команда разработки SGI XFS, <linux-xfs@oss.sgi.com>. Пожалуйста, отправляйте свои отчеты об ошибках или комментарии на <https://savannah.nongnu.org/bugs/?group=attr> или <acl-devel@nongnu.org>. SEE ALSO getfattr(1), setfattr(1), attr_get(3), attr_set(3), attr_multi(3), attr_remove(3), xattr(7), xfsdump(8) Дек 2001 Расширенные атрибуты ATTR(1)
ATTR(1) XFS Compatibility API ATTR(1) NAME attr - extended attributes on XFS filesystem objects SYNOPSIS attr [ -LRSq ] -s attrname [ -V attrvalue ] pathname attr [ -LRSq ] -g attrname pathname attr [ -LRSq ] -r attrname pathname attr [ -LRSq ] -l pathname OVERVIEW Extended attributes implement the ability for a user to attach name:value pairs to objects within the XFS filesystem. This document describes the attr command, which is mostly compatible with the IRIX command of the same name. It is thus aimed specifically at users of the XFS filesystem - for filesystem independent extended attribute manipulation, consult the getfattr(1) and setfattr(1) docu‐ mentation. Extended attributes can be used to store meta-information about the file. For example "character-set=kanji" could tell a document browser to use the Kanji character set when displaying that document and "thumbnail=..." could provide a reduced resolution overview of a high resolution graphic image. In the XFS filesystem, the names can be up to 256 bytes in length, ter‐ minated by the first 0 byte. The intent is that they be printable ASCII (or other character set) names for the attribute. The values can be up to 64KB of arbitrary binary data. Attributes can be attached to all types of XFS inodes: regular files, directories, symbolic links, device nodes, etc. XFS uses 2 disjoint attribute name spaces associated with every filesystem object. They are the root and user address spaces. The root address space is accessible only to the superuser, and then only by specifying a flag argument to the function call. Other users will not see or be able to modify attributes in the root address space. The user address space is protected by the normal file permissions mecha‐ nism, so the owner of the file can decide who is able to see and/or modify the value of attributes on any particular file. DESCRIPTION The attr utility allows the manipulation of extended attributes associ‐ ated with filesystem objects from within shell scripts. There are four main operations that attr can perform: GET The -g attrname option tells attr to search the named object and print (to stdout) the value associated with that attribute name. With the -q flag, stdout will be exactly and only the value of the attribute, suitable for storage directly into a file or pro‐ cessing via a piped command. LIST The -l option tells attr to list the names of all the attributes that are associated with the object, and the number of bytes in the value of each of those attributes. With the -q flag, stdout will be a simple list of only the attribute names, one per line, suitable for input into a script. REMOVE The -r attrname option tells attr to remove an attribute with the given name from the object if the attribute exists. There is no output on successful completion. SET/CREATE The -s attrname option tells attr to set the named attribute of the object to the value read from stdin. If an attribute with that name already exists, its value will be replaced with this one. If an attribute with that name does not already exist, one will be created with this value. With the -V attrvalue flag, the attribute will be set to have a value of attrvalue and stdin will not be read. With the -q flag, stdout will not be used. Without the -q flag, a message showing the attribute name and the entire value will be printed. When the -L option is given and the named object is a symbolic link, operate on the attributes of the object referenced by the symbolic link. Without this option, operate on the attributes of the symbolic link itself. When the -R option is given and the process has appropriate privileges, operate in the root attribute namespace rather that the USER attribute namespace. The -S option is similar, except it specifies use of the security at‐ tribute namespace. When the -q option is given attr will try to keep quiet. It will out‐ put error messages (to stderr) but will not print status messages (to stdout). NOTES The standard file interchange/archive programs tar(1), and cpio(1) will not archive or restore extended attributes, while the xfsdump(8) pro‐ gram will. CAVEATS The list option present in the IRIX version of this command is not sup‐ ported. getfattr provides a mechanism to retrieve all of the attribute names. AUTHOR Andreas Gruenbacher, <andreas.gruenbacher@gmail.com> and the SGI XFS development team, <linux-xfs@oss.sgi.com>. Please send your bug reports or comments to <https://savan‐ nah.nongnu.org/bugs/?group=attr> or <acl-devel@nongnu.org>. SEE ALSO getfattr(1), setfattr(1), attr_get(3), attr_set(3), attr_multi(3), attr_remove(3), xattr(7), xfsdump(8) Dec 2001 Extended Attributes ATTR(1)
GETFATTR(1) Утилиты файлов GETFATTR(1) NAME getfattr - получить extended attributes объектов файловой системы SYNOPSIS getfattr [-hRLP] -n name [-e en] pathname... getfattr [-hRLP] -d [-e en] [-m pattern] pathname... DESCRIPTION Для каждого файла getfattr отображает имя файла и набор имён extended attribute (и optionally values), которые связаны с этим файлом. По умолчанию отображаются только атрибуты в пространстве имён user, см. -m. Формат вывода getfattr -d следующий: 1: # file: somedir/ 2: user.name0="value0" 3: user.name1="value1" 4: user.name2="value2" 5: ... Строка 1 указывает имя файла, для которого выводятся следующие строки. Оставшиеся строки (строки 2 до 4 выше) показывают пары имя и значение, связанные с указанным файлом. OPTIONS -n name, --name=name Вывести значение указанного extended attribute. -d, --dump Вывести значения всех matching extended attributes. -e en, --encoding=en Закодировать values после их получения. Допустимые значения en - "text", "hex" и "base64". Значения, закодированные как текстовые строки, заключаются в двойные кавычки ("), в то время как строки, закодированные как hexadecimal и base64, предваряются префиксами 0x и 0s соответственно. -h, --no-dereference Не разыменовывать симлинки. Вместо файла, на который ссылается симлинк, сам симлинк будет проверен. Если не используется логическая (-L) обработка, не проходить по симлинкам к директориям. -m pattern, --match=pattern Включать только атрибуты с именами, соответствующими регулярному выражению pattern. Значение pattern по умолчанию - "^user\\.", что включает все атрибуты в пространстве имён user. Укажите "-" для включения всех атрибутов. Смотрите xattr(7) для более подробного обсуждения пространств имён. --absolute-names Не удалять начальные символы слэша ('/'). Поведение по умолчанию - удалять начальные символы слэша. --only-values Вывести сырые значения extended attribute без кодирования. -R, --recursive Перечислить атрибуты всех файлов и директорий рекурсивно. -L, --logical Логическая обработка, следовать символическим ссылкам на директории. Поведение по умолчанию - следовать символическим ссылкам в аргументах, если не указан --no-dereference, и пропускать символические ссылки в поддиректориях. Действует только в сочетании с -R. -P, --physical Физическая обработка, не следовать символическим ссылкам на директории. Это также пропускает аргументы-симлинки. Действует только в сочетании с -R. --version Вывести версию getfattr и выйти. --help Вывести справку по опциям командной строки. -- Конец опций командной строки. Все оставшиеся параметры интерпретируются как имена файлов, даже если они начинаются с символа тире. AUTHOR Andreas Gruenbacher, <andreas.gruenbacher@gmail.com> и команда разработки SGI XFS, <linux-xfs@oss.sgi.com>. Пожалуйста, отправляйте отчёты об ошибках или комментарии на <https://savannah.nongnu.org/bugs/?group=attr> или <acl-devel@nongnu.org>. SEE ALSO setfattr(1), xattr(7) Dec 2001 Extended Attributes GETFATTR(1)
GETFATTR(1) File Utilities GETFATTR(1) NAME getfattr - get extended attributes of filesystem objects SYNOPSIS getfattr [-hRLP] -n name [-e en] pathname... getfattr [-hRLP] -d [-e en] [-m pattern] pathname... DESCRIPTION For each file, getfattr displays the file name, and the set of extended attribute names (and optionally values) which are associated with that file. Per default only attributes in the user namespace are displayed, see -m. The output format of getfattr -d is as follows: 1: # file: somedir/ 2: user.name0="value0" 3: user.name1="value1" 4: user.name2="value2" 5: ... Line 1 identifies the file name for which the following lines are being reported. The remaining lines (lines 2 to 4 above) show the name and value pairs associated with the specified file. OPTIONS -n name, --name=name Dump the value of the named extended attribute. -d, --dump Dump the values of all matched extended attributes. -e en, --encoding=en Encode values after retrieving them. Valid values of en are "text", "hex", and "base64". Values encoded as text strings are enclosed in double quotes ("), while strings encoded as hexadecimal and base64 are prefixed with 0x and 0s, respectively. -h, --no-dereference Do not dereference symlinks. Instead of the file a symlink refers to, the symlink itself is examined. Unless doing a logical (-L) traversal, do not traverse symlinks to directories. -m pattern, --match=pattern Only include attributes with names matching the regular expression pattern. The default value for pattern is "^user\\.", which in‐ cludes all the attributes in the user namespace. Specify "-" for including all attributes. Refer to xattr(7) for a more detailed discussion of namespaces. --absolute-names Do not strip leading slash characters ('/'). The default behaviour is to strip leading slash characters. --only-values Dump out the raw extended attribute value(s) without encoding them. -R, --recursive List the attributes of all files and directories recursively. -L, --logical Logical walk, follow symbolic links to directories. The default behaviour is to follow symbolic link arguments unless --no-derefer‐ ence is given, and to skip symbolic links encountered in subdirec‐ tories. Only effective in combination with -R. -P, --physical Physical walk, do not follow symbolic links to directories. This also skips symbolic link arguments. Only effective in combination with -R. --version Print the version of getfattr and exit. --help Print help explaining the command line options. -- End of command line options. All remaining parameters are inter‐ preted as file names, even if they start with a dash character. AUTHOR Andreas Gruenbacher, <andreas.gruenbacher@gmail.com> and the SGI XFS development team, <linux-xfs@oss.sgi.com>. Please send your bug reports or comments to <https://savan‐ nah.nongnu.org/bugs/?group=attr> or <acl-devel@nongnu.org>. SEE ALSO setfattr(1), xattr(7) Dec 2001 Extended Attributes GETFATTR(1)